You are here

public function Language::__construct in Redirect 8

Constructs a Language 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.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

Overrides HandlerBase::__construct

File

modules/redirect_404/src/Plugin/views/field/Language.php, line 38

Class

Language
Provides a views field for the 404 error language.

Namespace

Drupal\redirect_404\Plugin\views\field

Code

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