protected function ContentLanguageFallbackLimitedFilter::defineOptions 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::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides FilterPluginBase::defineOptions
File
- src/
Plugin/ views/ filter/ ContentLanguageFallbackLimitedFilter.php, line 61
Class
- ContentLanguageFallbackLimitedFilter
- Filters to the most relevant translation for the current content language.
Namespace
Drupal\language_hierarchy\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
// Enable by default; the disabled state is only to allow the filter to be
// optionally applied when exposing it.
$options['value']['default'] = '1';
return $options;
}