public function MenuLinks::__construct in GraphQL 8.3
MenuLinks constructor.
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 PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Menu/ MenuLinks.php, line 58
Class
- MenuLinks
- Retrieves a menus links.
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\MenuCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, MenuLinkTreeInterface $menuLinkTree) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->menuLinkTree = $menuLinkTree;
}