public function EntityForm::access in Entity Browser 8.2
Same name and namespace in other branches
- 8 modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php \Drupal\entity_browser_entity_form\Plugin\EntityBrowser\Widget\EntityForm::access()
Defines if the widget is visible / accessible in a given context.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
Overrides WidgetBase::access
File
- modules/
entity_form/ src/ Plugin/ EntityBrowser/ Widget/ EntityForm.php, line 245
Class
- EntityForm
- Provides entity form widget.
Namespace
Drupal\entity_browser_entity_form\Plugin\EntityBrowser\WidgetCode
public function access() {
return $this->entityTypeManager
->getAccessControlHandler($this->configuration['entity_type'])
->createAccess($this->configuration['bundle'], NULL, [], TRUE);
}