You are here

public function EntityFormProxy::access in Lightning Media 8.4

Same name and namespace in other branches
  1. 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\Widget

Code

public function access() {
  $allowed_types = $this
    ->getAllowedTypes();
  return $allowed_types ? AccessResult::allowed() : AccessResult::forbidden();
}