public function EntityRendered::__construct in GraphQL 8.3
EntityRendered 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\Render\RendererInterface $renderer: The renderer service.
Overrides PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Entity/ EntityRendered.php, line 70
Class
- EntityRendered
- Plugin annotation @GraphQLField( id = "entity_rendered", name = "entityRendered", type = "String", secure = true, deriver = "Drupal\graphql_core\Plugin\Deriver\Fields\EntityRenderedDeriver", )
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\EntityCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, RendererInterface $renderer) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityTypeManager = $entityTypeManager;
$this->renderer = $renderer;
}