function MenuLinkContentDeriver::create

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

Overrides ContainerDeriverInterface::create

File

core/modules/menu_link_content/src/Plugin/Deriver/MenuLinkContentDeriver.php, line 49

Class

MenuLinkContentDeriver
Provides a deriver for user entered paths of menu links.

Namespace

Drupal\menu_link_content\Plugin\Deriver

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
    return new static($container->get('entity_type.manager'), $container->get('plugin.manager.menu.link'));
}

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