function MenuLinkContentAccessControlHandler::createInstance
Same name in other branches
- 8.9.x core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php \Drupal\menu_link_content\MenuLinkContentAccessControlHandler::createInstance()
- 10 core/modules/menu_link_content/src/MenuLinkContentAccessControlHandler.php \Drupal\menu_link_content\MenuLinkContentAccessControlHandler::createInstance()
- 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_contentCode
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.