You are here

public static function LocalActionsBlock::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::create()
  2. 9 core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::create()

File

core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php, line 58

Class

LocalActionsBlock
Provides a block to display the local actions.

Namespace

Drupal\Core\Menu\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('plugin.manager.menu.local_action'), $container
    ->get('current_route_match'));
}