function AddNavigationBlock::create

Overrides ContainerFactoryPluginInterface::create

File

core/modules/navigation/src/Plugin/ConfigAction/AddNavigationBlock.php, line 39

Class

AddNavigationBlock
@internal This API is experimental.

Namespace

Drupal\navigation\Plugin\ConfigAction

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : static {
    return new static($container->get(SectionStorageManagerInterface::class), $container->get(UuidInterface::class));
}

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