You are here

public static function MenuLinksActiveTrail::create in Thunder 6.2.x

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

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

Class

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

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\DataProducer

Code

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