public function PrerenderList::buildOptionsForm

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

Overrides FieldPluginBase::buildOptionsForm

1 call to PrerenderList::buildOptionsForm()
TaxonomyIndexTid::buildOptionsForm in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/TaxonomyIndexTid.php
Provide "link to term" option.
1 method overrides PrerenderList::buildOptionsForm()
TaxonomyIndexTid::buildOptionsForm in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/field/TaxonomyIndexTid.php
Provide "link to term" option.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/PrerenderList.php, line 45
Definition of Drupal\views\Plugin\views\field\PrerenderList.

Class

PrerenderList
Field handler to provide a list of items.

Namespace

Drupal\views\Plugin\views\field

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['type'] = array(
    '#type' => 'radios',
    '#title' => t('Display type'),
    '#options' => array(
      'ul' => t('Unordered list'),
      'ol' => t('Ordered list'),
      'separator' => t('Simple separator'),
    ),
    '#default_value' => $this->options['type'],
  );
  $form['separator'] = array(
    '#type' => 'textfield',
    '#title' => t('Separator'),
    '#default_value' => $this->options['separator'],
    '#states' => array(
      'visible' => array(
        ':input[name="options[type]"]' => array(
          'value' => 'separator',
        ),
      ),
    ),
  );
  parent::buildOptionsForm($form, $form_state);
}