public function RouteLoad::__construct in GraphQL 8.4
Route constructor.
@codeCoverageIgnore
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\redirect\RedirectRepository|null $redirectRepository:
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ GraphQL/ DataProducer/ Routing/ RouteLoad.php, line 77
Class
- RouteLoad
- Returns the URL of the given path.
Namespace
Drupal\graphql\Plugin\GraphQL\DataProducer\RoutingCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, PathValidatorInterface $pathValidator, ?RedirectRepository $redirectRepository = NULL) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->pathValidator = $pathValidator;
$this->redirectRepository = $redirectRepository;
}