You are here

public function LanguageField::buildOptionsForm in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/field/LanguageField.php \Drupal\views\Plugin\views\field\LanguageField::buildOptionsForm()

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

Overrides FieldPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/field/LanguageField.php, line 35
Contains \Drupal\views\Plugin\views\field\LanguageField.

Class

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

Namespace

Drupal\views\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['native_language'] = array(
    '#title' => $this
      ->t('Display in native language'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['native_language'],
  );
}