function RssPluginBase::buildOptionsForm

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm()
  2. 10 core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm()
  3. 11.x core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm()

Overrides RowPluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/row/RssPluginBase.php, line 84

Class

RssPluginBase
Base class for Views RSS row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form, $form_state);
    $form['view_mode'] = [
        '#type' => 'select',
        '#title' => $this->t('Display type'),
        '#options' => $this->buildOptionsForm_summary_options(),
        '#default_value' => $this->options['view_mode'],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.