public function EntityById::__construct in GraphQL 8.3
EntityById 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.
\Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer: The entity buffer service.
Overrides PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Entity/ EntityById.php, line 82
Class
- EntityById
- Plugin annotation @GraphQLField( id = "entity_by_id", secure = true, arguments = { "id" = "String!" }, contextual_arguments = {"language"}, deriver = "Drupal\graphql_core\Plugin\Deriver\Fields\EntityByIdDeriver" )
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\EntityCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository, EntityBuffer $entityBuffer) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityBuffer = $entityBuffer;
$this->entityTypeManager = $entityTypeManager;
$this->entityRepository = $entityRepository;
}