You are here

public function AccessUnpublishedTokenSet::__construct in Access unpublished 8

AccessUnpublishedTokenSet constructor.

Parameters

array $configuration: The plugin configuration.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\access_unpublished\TokenGetter $tokenGetter: The token getter service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/AccessUnpublishedTokenSet.php, line 59

Class

AccessUnpublishedTokenSet
Set an access_unpublished token.

Namespace

Drupal\access_unpublished\Plugin\GraphQL\DataProducer

Code

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