You are here

public function MenuLinks::__construct in GraphQL 8.4

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.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/Menu/MenuLinks.php, line 73

Class

MenuLinks
Return the menu links of a menu.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Menu

Code

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