function RssPluginBase::defineOptions

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

Overrides RowPluginBase::defineOptions

File

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

Class

RssPluginBase
Base class for Views RSS row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['view_mode'] = [
        'default' => 'default',
    ];
    return $options;
}

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