You are here

public function MenuLinksActiveTrail::__construct in Thunder 6.2.x

MenuItems constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\Core\Menu\MenuLinkTreeInterface $menuLinkTree: The menu link tree service.

\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: The menu link manager service.

File

modules/thunder_gqls/src/Plugin/GraphQL/DataProducer/MenuLinksActiveTrail.php, line 86

Class

MenuLinksActiveTrail
Return the menu links of a menu with active trail.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\DataProducer

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, MenuLinkTreeInterface $menuLinkTree, MenuLinkManagerInterface $menuLinkManager) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->menuLinkTree = $menuLinkTree;
  $this->menuLinkManager = $menuLinkManager;
}