public function WidgetBase::access in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/WidgetBase.php \Drupal\entity_browser\WidgetBase::access()
Defines if the widget is visible / accessible in a given context.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
Overrides WidgetInterface::access
3 methods override WidgetBase::access()
- DummyWidget::access in tests/
modules/ entity_browser_test/ src/ Plugin/ EntityBrowser/ Widget/ DummyWidget.php - Defines if the widget is visible / accessible in a given context.
- EntityForm::access in modules/
entity_form/ src/ Plugin/ EntityBrowser/ Widget/ EntityForm.php - Defines if the widget is visible / accessible in a given context.
- View::access in src/
Plugin/ EntityBrowser/ Widget/ View.php - Defines if the widget is visible / accessible in a given context.
File
- src/
WidgetBase.php, line 379
Class
- WidgetBase
- Base class for widget plugins.
Namespace
Drupal\entity_browserCode
public function access() {
return AccessResult::allowed();
}