You are here

public function RouteEntity::__construct in GraphQL 8.3

RouteEntity constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition array.

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

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager service.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/RouteEntity.php, line 90

Class

RouteEntity
Retrieve the current routes entity, if it is an entity route.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Routing

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository, LanguageManagerInterface $languageManager) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->entityTypeManager = $entityTypeManager;
  $this->languageManager = $languageManager;
  $this->entityRepository = $entityRepository;
}