You are here

public static function RouteEntity::create in GraphQL 8.4

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/GraphQL/DataProducer/Routing/RouteEntity.php, line 60

Class

RouteEntity
Loads the entity associated with the current URL.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Routing

Code

public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) {
  return new static($configuration, $pluginId, $pluginDefinition, $container
    ->get('entity_type.manager'), $container
    ->get('graphql.buffer.entity'));
}