You are here

public function Fields::__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.

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: The entity field manager service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/EntityDefinition/Fields.php, line 89

Class

Fields
Retrieve the list of fields from a given entity definition.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\EntityDefinition

Code

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