You are here

public static function RouteLoad::create in GraphQL 8.4

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/GraphQL/DataProducer/Routing/RouteLoad.php, line 52

Class

RouteLoad
Returns the URL of the given path.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Routing

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('path.validator'), $container
    ->get('redirect.repository', ContainerInterface::NULL_ON_INVALID_REFERENCE));
}