public function EntityRendered::__construct in GraphQL 8.4
EntityRendered constructor.
@codeCoverageIgnore
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 ContextAwarePluginBase::__construct
File
- src/
Plugin/ GraphQL/ DataProducer/ Entity/ EntityRendered.php, line 84
Class
- EntityRendered
- Returns the rendered entity in a given view mode.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\EntityCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, RendererInterface $renderer) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->entityTypeManager = $entityTypeManager;
$this->renderer = $renderer;
}