function LanguageField::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/LanguageField.php \Drupal\views\Plugin\views\field\LanguageField::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/field/LanguageField.php \Drupal\views\Plugin\views\field\LanguageField::defineOptions()
- 11.x core/modules/views/src/Plugin/views/field/LanguageField.php \Drupal\views\Plugin\views\field\LanguageField::defineOptions()
Overrides FieldPluginBase::defineOptions
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ LanguageField.php, line 20
Class
- LanguageField
- Defines a field handler to translate a language into its readable form.
Namespace
Drupal\views\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['native_language'] = [
'default' => FALSE,
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.