public function ContentLanguageFallbackLimitedFilter::__construct in Language Hierarchy 8
Same name and namespace in other branches
- 2.x src/Plugin/views/filter/ContentLanguageFallbackLimitedFilter.php \Drupal\language_hierarchy\Plugin\views\filter\ContentLanguageFallbackLimitedFilter::__construct()
Constructs a new LanguageFilter instance.
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
- src/
Plugin/ views/ filter/ ContentLanguageFallbackLimitedFilter.php, line 40
Class
- ContentLanguageFallbackLimitedFilter
- Filters to the most relevant translation for the current content language.
Namespace
Drupal\language_hierarchy\Plugin\views\filterCode
public function __construct($configuration, $plugin_id, $plugin_definition, LanguageManagerInterface $language_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->languageManager = $language_manager;
}