You are here

public function EntityDefinition::__construct in GraphQL 8.4

EntityLoad constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $plugin_id: The plugin id.

array $plugin_definition: The plugin definition array.

\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: The entity type manager service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/EntityDefinition/EntityDefinition.php, line 75

Class

EntityDefinition
Gets entity definition for a given entity type.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\EntityDefinition

Code

public function __construct(array $configuration, string $plugin_id, array $plugin_definition, EntityTypeManager $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
}