You are here

public function FieldList::buildOptionsForm in Views (for Drupal 7) 8.3

Build the options form.

Overrides Numeric::buildOptionsForm

File

lib/Views/field/Plugin/views/argument/FieldList.php, line 47
Definition of views_handler_argument_field_list.

Class

FieldList
Argument handler for list field to show the human readable name in the summary.

Namespace

Views\field\Plugin\views\argument

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['summary']['human'] = array(
    '#title' => t('Display list value as human readable'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['summary']['human'],
    '#states' => array(
      'visible' => array(
        ':input[name="options[default_action]"]' => array(
          'value' => 'summary',
        ),
      ),
    ),
  );
}