You are here

public function LanguageSwitchLinks::__construct in GraphQL 8.3

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/LanguageSwitch/LanguageSwitchLinks.php, line 73

Class

LanguageSwitchLinks
Plugin annotation @GraphQLField( id = "url_language_switch_links", secure = true, name = "languageSwitchLinks", type = "[LanguageSwitchLink]", parents = {"InternalUrl"}, arguments = { "language" = "LanguageId" }, …

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\LanguageSwitch

Code

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