public function Language::buildOptionsForm in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Views/node/Plugin/views/field/Language.php \Views\node\Plugin\views\field\Language::buildOptionsForm()
- 8.3 lib/Views/language/Plugin/views/field/Language.php \Views\language\Plugin\views\field\Language::buildOptionsForm()
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- lib/
Views/ language/ Plugin/ views/ field/ Language.php, line 32 - Definition of Views\language\Plugin\views\field\Language.
Class
- Language
- Field handler to translate a language into its readable form.
Namespace
Views\language\Plugin\views\fieldCode
public function buildOptionsForm(&$form, &$form_state) {
parent::buildOptionsForm($form, $form_state);
$form['native_language'] = array(
'#title' => t('Native language'),
'#type' => 'checkbox',
'#default_value' => $this->options['native_language'],
'#description' => t('If enabled, the native name of the language will be displayed'),
);
}