You are here

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

Build the options form.

Overrides String::buildOptionsForm

File

lib/Views/field/Plugin/views/argument/ListString.php, line 48
Definition of Views\field\Plugin\views\argument\ListString.

Class

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