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()
Provide link to node option
Overrides Node::buildOptionsForm
File
- lib/
Views/ node/ Plugin/ views/ field/ Language.php, line 32 - Definition of Views\node\Plugin\views\field\Language.
Class
- Language
- Field handler to translate a language into its readable form.
Namespace
Views\node\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'),
);
}