You are here

public static function JumpMenuBlock::create in Better Jump Menus 8

File

lib/Drupal/jump_menu/Plugin/Derivative/JumpMenuBlock.php, line 42
Contains \Drupal\jump_menu\Plugin\Derivative\JumpMenuBlock.

Class

JumpMenuBlock
Provides jump menu block plugin definitions for custom menus.

Namespace

Drupal\jump_menu\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($container
    ->get('entity.manager')
    ->getStorageController('menu'));
}