You are here

protected function RouteEntity::resolveMissingEntity in GraphQL 8.3

m

Parameters

\Drupal\Core\Url $url: The url of the entity to resolve.

array $args: The field arguments array.

\GraphQL\Type\Definition\ResolveInfo $info: The resolve info object.

Return value

\Generator

1 call to RouteEntity::resolveMissingEntity()
RouteEntity::resolveValues in modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/RouteEntity.php
Retrieve the list of field values.

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/RouteEntity.php, line 182

Class

RouteEntity
Retrieve the current routes entity, if it is an entity route.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Routing

Code

protected function resolveMissingEntity(Url $url, $args, $info) {
  (yield (new CacheableValue(NULL))
    ->addCacheTags([
    '4xx-response',
  ]));
}