You are here

public static function MenuBuilder::create in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/MenuBuilder.php \Drupal\context_ui\MenuBuilder::create()

Create function.

Parameters

\Drupal\context_ui\ContainerInterface $container:

Return value

static

File

modules/context_ui/src/MenuBuilder.php, line 39

Class

MenuBuilder
Implements the MenuBuilder class, which configures and updates the submenu context items

Namespace

Drupal\context_ui

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('plugin.manager.menu.link'));
}