public function EntityFormProxy::access in Lightning Media 8.4
Same name and namespace in other branches
- 8.3 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::access()
File
- src/
Plugin/ EntityBrowser/ Widget/ EntityFormProxy.php, line 304
Class
- EntityFormProxy
- Base class for EB widgets which wrap around an (inline) entity form.
Namespace
Drupal\lightning_media\Plugin\EntityBrowser\WidgetCode
public function access() {
$allowed_types = $this
->getAllowedTypes();
return $allowed_types ? AccessResult::allowed() : AccessResult::forbidden();
}