function UserNavigationBlock::create

Same name in other branches
  1. 11.x core/modules/navigation/src/Plugin/Block/UserNavigationBlock.php \Drupal\navigation\Plugin\Block\UserNavigationBlock::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/navigation/src/Plugin/Block/UserNavigationBlock.php, line 49

Class

UserNavigationBlock
Defines a user navigation block.

Namespace

Drupal\navigation\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('module_handler'));
}

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