function NavigationShortcutsBlock::create
Instantiates a new instance of the implementing class using autowiring.
Return value
static
Overrides PluginBase::create
File
- 
              core/
modules/ navigation/ src/ Plugin/ Block/ NavigationShortcutsBlock.php, line 49  
Class
- NavigationShortcutsBlock
 - Defines a shortcuts navigation block class.
 
Namespace
Drupal\navigation\Plugin\BlockCode
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.