You are here

public function Route::__construct in GraphQL 8.3

Route constructor.

Parameters

array $configuration: The plugin configuration.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\Core\Path\PathValidatorInterface $pathValidator: The path validator service.

\Drupal\language\LanguageNegotiator|null $languageNegotiator: The language negotiator.

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

\Drupal\redirect\RedirectRepository $redirectRepository: The redirect repository, if redirect module is active.

\Drupal\Core\PathProcessor\InboundPathProcessorInterface: An inbound path processor, to clean paths before redirect lookups.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/Route.php, line 98

Class

Route
Retrieve a route object based on a path.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Routing

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, PathValidatorInterface $pathValidator, $languageNegotiator, $languageManager, $redirectRepository, $pathProcessor) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->redirectRepository = $redirectRepository;
  $this->pathProcessor = $pathProcessor;
  $this->pathValidator = $pathValidator;
  $this->languageNegotiator = $languageNegotiator;
  $this->languageManager = $languageManager;
}