You are here

public function EntityRevisionById::__construct in GraphQL 8.3

EntityRevisionById constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Entity/EntityRevisionById.php, line 72

Class

EntityRevisionById
Plugin annotation @GraphQLField( id = "entity_revision_by_id", secure = true, arguments = { "id" = "String!" }, contextual_arguments = {"language"}, deriver = "Drupal\graphql_core\Plugin\Deriver\Fields\EntityRevisionByIdDeriver" )

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Entity

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->entityTypeManager = $entityTypeManager;
  $this->entityRepository = $entityRepository;
}