function LayoutBuilderLocalTaskDeriver::create

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

Overrides ContainerDeriverInterface::create

File

core/modules/layout_builder/src/Plugin/Derivative/LayoutBuilderLocalTaskDeriver.php, line 55

Class

LayoutBuilderLocalTaskDeriver
Provides local task definitions for the layout builder user interface.

Namespace

Drupal\layout_builder\Plugin\Derivative

Code

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

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