You are here

public function EntityReferenceLayoutRevisions::__construct in GraphQL 8.4

EntityLoad constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

array $pluginDefinition: The plugin definition array.

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

\Drupal\graphql\GraphQL\Buffers\EntityRevisionBuffer $entityRevisionBuffer: The entity revision buffer service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/GraphQL/DataProducer/Field/EntityReferenceLayoutRevisions.php, line 113

Class

EntityReferenceLayoutRevisions
Loads the entity reference layout revisions.

Namespace

Drupal\graphql\Plugin\GraphQL\DataProducer\Field

Code

public function __construct(array $configuration, string $pluginId, array $pluginDefinition, EntityTypeManager $entityTypeManager, EntityRevisionBuffer $entityRevisionBuffer) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->entityTypeManager = $entityTypeManager;
  $this->entityRevisionBuffer = $entityRevisionBuffer;
}