X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fentity_browser%2Fsrc%2FWidgetInterface.php;h=c88f4b82d8e266c5059f679edcc648b02147564f;hp=0a1140f7a987b371253147cd0ad4cf6a418ec0a1;hb=059867c3f96750652c80f39e44c442a58c2549ee;hpb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2 diff --git a/web/modules/contrib/entity_browser/src/WidgetInterface.php b/web/modules/contrib/entity_browser/src/WidgetInterface.php index 0a1140f7a..c88f4b82d 100644 --- a/web/modules/contrib/entity_browser/src/WidgetInterface.php +++ b/web/modules/contrib/entity_browser/src/WidgetInterface.php @@ -118,4 +118,12 @@ interface WidgetInterface extends PluginInspectionInterface, ConfigurablePluginI */ public function requiresJsCommands(); + /** + * Defines if the widget is visible / accessible in a given context. + * + * @return \Drupal\Core\Access\AccessResultInterface + * The access result. + */ + public function access(); + }