You are here

public function RssPluginBase::buildOptionsForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm()
  2. 9 core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::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'],
  ];
}