You are here

public function FallbackEntity::__construct in Media Expire 8.2

Overrides \Drupal\Component\Plugin\PluginBase::__construct().

Overrides the construction of context aware plugins to allow for unvalidated constructor based injection of contexts.

Parameters

array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides ContextAwarePluginBase::__construct

File

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

Class

FallbackEntity
Loads a route with an optional token.

Namespace

Drupal\media_expire\Plugin\GraphQL\DataProducer

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, MediaExpireService $mediaExpireService) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->mediaExpireService = $mediaExpireService;
}