You are here

public function FallbackEntity::resolve in Media Expire 8.2

File

src/Plugin/GraphQL/DataProducer/FallbackEntity.php, line 66

Class

FallbackEntity
Loads a route with an optional token.

Namespace

Drupal\media_expire\Plugin\GraphQL\DataProducer

Code

public function resolve(MediaInterface $entity, RefinableCacheableDependencyInterface $metadata) {
  return $this->mediaExpireService
    ->getFallbackMedia($entity);
}