public function ActiveTrail::__construct in Context Active Trail 8
Same name and namespace in other branches
- 8.2 src/Plugin/ContextReaction/ActiveTrail.php \Drupal\context_active_trail\Plugin\ContextReaction\ActiveTrail::__construct()
Constructor.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_link_selector: The menu link selector.
File
- src/
Plugin/ ContextReaction/ ActiveTrail.php, line 41
Class
- ActiveTrail
- Provides a reaction that sets the active trail.
Namespace
Drupal\context_active_trail\Plugin\ContextReactionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MenuParentFormSelectorInterface $menu_link_selector) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->menuLinkSelector = $menu_link_selector;
}