You are here

public function AvailableLanguages::__construct in GraphQL 8.3

AvailableLanguages 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/Languages/AvailableLanguages.php, line 56

Class

AvailableLanguages
List site-wide configured languages.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Languages

Code

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