You are here

protected function Feed::defineOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/display/Feed.php \Drupal\views\Plugin\views\display\Feed::defineOptions()

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().

Overrides PathPluginBase::defineOptions

File

core/modules/views/src/Plugin/views/display/Feed.php, line 142
Contains \Drupal\views\Plugin\views\display\Feed.

Class

Feed
The plugin that handles a feed, such as RSS or atom.

Namespace

Drupal\views\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['displays'] = array(
    'default' => array(),
  );

  // Overrides for standard stuff.
  $options['style']['contains']['type']['default'] = 'rss';
  $options['style']['contains']['options']['default'] = array(
    'description' => '',
  );
  $options['sitename_title']['default'] = FALSE;
  $options['row']['contains']['type']['default'] = 'rss_fields';
  $options['defaults']['default']['style'] = FALSE;
  $options['defaults']['default']['row'] = FALSE;
  return $options;
}