public function ThunderRedirect::__construct in Thunder 6.2.x
Route constructor.
@codeCoverageIgnore
Parameters
array $configuration: The plugin configuration.
string $pluginId: The plugin id.
mixed $pluginDefinition: The plugin definition.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.
\Drupal\redirect\RedirectRepository|null $redirectRepository: The redirect repository.
File
- modules/
thunder_gqls/ src/ Plugin/ GraphQL/ DataProducer/ ThunderRedirect.php, line 79
Class
- ThunderRedirect
- Gets the ID of current user.
Namespace
Drupal\thunder_gqls\Plugin\GraphQL\DataProducerCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, LanguageManagerInterface $languageManager, ?RedirectRepository $redirectRepository = NULL) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->languageManager = $languageManager;
$this->redirectRepository = $redirectRepository;
}