You are here

public function Menu::execute in Context 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/ContextReaction/Menu.php \Drupal\context\Plugin\ContextReaction\Menu::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

File

src/Plugin/ContextReaction/Menu.php, line 57

Class

Menu
Provides a content reaction that adds a css 'active' class to menu item.

Namespace

Drupal\context\Plugin\ContextReaction

Code

public function execute(array &$vars = []) {
  $config = $this
    ->getConfiguration();
  return $config['menu'];
}