function Feed::defaultableSections
Same name in other branches
- 9 core/modules/views/src/Plugin/views/display/Feed.php \Drupal\views\Plugin\views\display\Feed::defaultableSections()
- 10 core/modules/views/src/Plugin/views/display/Feed.php \Drupal\views\Plugin\views\display\Feed::defaultableSections()
- 11.x core/modules/views/src/Plugin/views/display/Feed.php \Drupal\views\Plugin\views\display\Feed::defaultableSections()
Overrides DisplayPluginBase::defaultableSections
File
-
core/
modules/ views/ src/ Plugin/ views/ display/ Feed.php, line 162
Class
- Feed
- The plugin that handles a feed, such as RSS or atom.
Namespace
Drupal\views\Plugin\views\displayCode
public function defaultableSections($section = NULL) {
$sections = parent::defaultableSections($section);
if (in_array($section, [
'style',
'row',
])) {
return FALSE;
}
// Tell views our sitename_title option belongs in the title section.
if ($section == 'title') {
$sections[] = 'sitename_title';
}
elseif (!$section) {
$sections['title'][] = 'sitename_title';
}
return $sections;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.