public function LanguageField::buildOptionsForm

Default options form that provides the label widget that all fields should have.

Overrides FieldPluginBase::buildOptionsForm

File

drupal/core/modules/language/lib/Drupal/language/Plugin/views/field/LanguageField.php, line 29
Contains Drupal\language\Plugin\views\field\LanguageField.

Class

LanguageField
Defines a field handler to translate a language into its readable form.

Namespace

Drupal\language\Plugin\views\field

Code

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'),
  );
}