function BlockContentAddLocalAction::create

Same name in other branches
  1. 11.x core/modules/block_content/src/Plugin/Menu/LocalAction/BlockContentAddLocalAction.php \Drupal\block_content\Plugin\Menu\LocalAction\BlockContentAddLocalAction::create()

Overrides LocalActionDefault::create

File

core/modules/block_content/src/Plugin/Menu/LocalAction/BlockContentAddLocalAction.php, line 33

Class

BlockContentAddLocalAction
Modifies the 'Add content block' local action.

Namespace

Drupal\block_content\Plugin\Menu\LocalAction

Code

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

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