public function Translate::__construct in GraphQL 8.3
Alias constructor.
Parameters
array $configuration: The plugin configuration array.
string $pluginId: The plugin id.
mixed $pluginDefinition: The plugin definition.
\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager service.
Overrides PluginBase::__construct
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ Routing/ Translate.php, line 62
Class
- Translate
- Plugin annotation @GraphQLField( id = "url_translate", secure = true, name = "translate", description = @Translation("The translated url object."), type = "Url", parents = {"Url"}, arguments = { "language" = "LanguageId!" }, …
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\RoutingCode
public function __construct(array $configuration, $pluginId, $pluginDefinition, LanguageManagerInterface $languageManager) {
parent::__construct($configuration, $pluginId, $pluginDefinition);
$this->languageManager = $languageManager;
}