You are here

public static function MenuLinks::create in GraphQL 8.4

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

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

Class

MenuLinks
Return the menu links of a menu.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Menu

Code

public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) {
  return new static($configuration, $pluginId, $pluginDefinition, $container
    ->get('menu.link_tree'));
}