function MenuLinkContentAccessControlHandler::createInstance

Same name in other branches
  1. 9 core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php \Drupal\menu_link_content\MenuLinkContentAccessControlHandler::createInstance()
  2. 8.9.x core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php \Drupal\menu_link_content\MenuLinkContentAccessControlHandler::createInstance()
  3. 11.x core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php \Drupal\menu_link_content\MenuLinkContentAccessControlHandler::createInstance()

Overrides EntityHandlerInterface::createInstance

File

core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php, line 43

Class

MenuLinkContentAccessControlHandler
Defines the access control handler for the menu link content entity type.

Namespace

Drupal\menu_link_content

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static($entity_type, $container->get('access_manager'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.