Loading core/modules/comment/src/Plugin/views/row/Rss.php +3 −7 Original line number Diff line number Diff line Loading @@ -66,8 +66,7 @@ public function preRender($result) { */ public function buildOptionsForm_summary_options() { $options = parent::buildOptionsForm_summary_options(); $options['title'] = $this->t('Title only'); $options['default'] = $this->t('Use site default RSS settings'); $options[$this::TITLE_VIEW_MODE] = $this->t('Title only'); return $options; } Loading @@ -83,9 +82,6 @@ public function render($row) { } $view_mode = $this->options['view_mode']; if ($view_mode == 'default') { $view_mode = \Drupal::config('system.rss')->get('items.view_mode'); } // Load the specified comment and its associated node: /** @var \Drupal\comment\CommentInterface $comment */ Loading Loading @@ -113,7 +109,7 @@ public function render($row) { // The comment gets built and modules add to or modify // $comment->rss_elements and $comment->rss_namespaces. $build = $this->entityTypeManager->getViewBuilder('comment')->view($comment, 'rss'); $build = $this->entityTypeManager->getViewBuilder('comment')->view($comment, $view_mode); unset($build['#theme']); if (!empty($comment->rss_namespaces)) { Loading @@ -121,7 +117,7 @@ public function render($row) { } $item = new \stdClass(); if ($view_mode != 'title') { if ($view_mode != $this::TITLE_VIEW_MODE) { // We render comment contents. $item->description = $build; } Loading core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +0 −5 Original line number Diff line number Diff line Loading @@ -471,11 +471,6 @@ public function testGetConfigData(): void { 'enabled' => FALSE, 'message' => '@site is currently under maintenance.', ], 'system.rss' => [ 'items' => [ 'view_mode' => 'rss', ], ], ]; $this->configNamesMapper->setConfigNames(array_keys($configs)); Loading core/modules/node/src/Plugin/views/row/Rss.php +3 −9 Original line number Diff line number Diff line Loading @@ -51,8 +51,7 @@ class Rss extends RssPluginBase { */ public function buildOptionsForm_summary_options() { $options = parent::buildOptionsForm_summary_options(); $options['title'] = $this->t('Title only'); $options['default'] = $this->t('Use site default RSS settings'); $options[$this::TITLE_VIEW_MODE] = $this->t('Title only'); return $options; } Loading Loading @@ -89,9 +88,6 @@ public function render($row) { } $display_mode = $this->options['view_mode']; if ($display_mode == 'default') { $display_mode = \Drupal::config('system.rss')->get('items.view_mode'); } // Load the specified node: /** @var \Drupal\node\NodeInterface $node */ Loading Loading @@ -120,11 +116,9 @@ public function render($row) { // The node gets built and modules add to or modify $node->rss_elements // and $node->rss_namespaces. $build_mode = $display_mode; $build = \Drupal::entityTypeManager() ->getViewBuilder('node') ->view($node, $build_mode); ->view($node, $display_mode); // Add rss key to cache to differentiate this from other caches. $build['#cache']['keys'][] = 'view_rss'; Loading @@ -135,7 +129,7 @@ public function render($row) { } $item = new \stdClass(); if ($display_mode != 'title') { if ($display_mode != $this::TITLE_VIEW_MODE) { // We render node contents. $item->description = $build; } Loading core/modules/system/config/install/system.rss.ymldeleted 100644 → 0 +0 −2 Original line number Diff line number Diff line items: view_mode: rss core/modules/system/config/schema/system.schema.yml +0 −12 Original line number Diff line number Diff line Loading @@ -236,18 +236,6 @@ system.performance: type: boolean label: 'Compress JavaScript files.' system.rss: type: config_object label: 'Feed settings' mapping: items: type: mapping label: 'Feed items' mapping: view_mode: type: string label: 'Feed content' system.theme: type: config_object label: 'Theme settings' Loading Loading
core/modules/comment/src/Plugin/views/row/Rss.php +3 −7 Original line number Diff line number Diff line Loading @@ -66,8 +66,7 @@ public function preRender($result) { */ public function buildOptionsForm_summary_options() { $options = parent::buildOptionsForm_summary_options(); $options['title'] = $this->t('Title only'); $options['default'] = $this->t('Use site default RSS settings'); $options[$this::TITLE_VIEW_MODE] = $this->t('Title only'); return $options; } Loading @@ -83,9 +82,6 @@ public function render($row) { } $view_mode = $this->options['view_mode']; if ($view_mode == 'default') { $view_mode = \Drupal::config('system.rss')->get('items.view_mode'); } // Load the specified comment and its associated node: /** @var \Drupal\comment\CommentInterface $comment */ Loading Loading @@ -113,7 +109,7 @@ public function render($row) { // The comment gets built and modules add to or modify // $comment->rss_elements and $comment->rss_namespaces. $build = $this->entityTypeManager->getViewBuilder('comment')->view($comment, 'rss'); $build = $this->entityTypeManager->getViewBuilder('comment')->view($comment, $view_mode); unset($build['#theme']); if (!empty($comment->rss_namespaces)) { Loading @@ -121,7 +117,7 @@ public function render($row) { } $item = new \stdClass(); if ($view_mode != 'title') { if ($view_mode != $this::TITLE_VIEW_MODE) { // We render comment contents. $item->description = $build; } Loading
core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +0 −5 Original line number Diff line number Diff line Loading @@ -471,11 +471,6 @@ public function testGetConfigData(): void { 'enabled' => FALSE, 'message' => '@site is currently under maintenance.', ], 'system.rss' => [ 'items' => [ 'view_mode' => 'rss', ], ], ]; $this->configNamesMapper->setConfigNames(array_keys($configs)); Loading
core/modules/node/src/Plugin/views/row/Rss.php +3 −9 Original line number Diff line number Diff line Loading @@ -51,8 +51,7 @@ class Rss extends RssPluginBase { */ public function buildOptionsForm_summary_options() { $options = parent::buildOptionsForm_summary_options(); $options['title'] = $this->t('Title only'); $options['default'] = $this->t('Use site default RSS settings'); $options[$this::TITLE_VIEW_MODE] = $this->t('Title only'); return $options; } Loading Loading @@ -89,9 +88,6 @@ public function render($row) { } $display_mode = $this->options['view_mode']; if ($display_mode == 'default') { $display_mode = \Drupal::config('system.rss')->get('items.view_mode'); } // Load the specified node: /** @var \Drupal\node\NodeInterface $node */ Loading Loading @@ -120,11 +116,9 @@ public function render($row) { // The node gets built and modules add to or modify $node->rss_elements // and $node->rss_namespaces. $build_mode = $display_mode; $build = \Drupal::entityTypeManager() ->getViewBuilder('node') ->view($node, $build_mode); ->view($node, $display_mode); // Add rss key to cache to differentiate this from other caches. $build['#cache']['keys'][] = 'view_rss'; Loading @@ -135,7 +129,7 @@ public function render($row) { } $item = new \stdClass(); if ($display_mode != 'title') { if ($display_mode != $this::TITLE_VIEW_MODE) { // We render node contents. $item->description = $build; } Loading
core/modules/system/config/install/system.rss.ymldeleted 100644 → 0 +0 −2 Original line number Diff line number Diff line items: view_mode: rss
core/modules/system/config/schema/system.schema.yml +0 −12 Original line number Diff line number Diff line Loading @@ -236,18 +236,6 @@ system.performance: type: boolean label: 'Compress JavaScript files.' system.rss: type: config_object label: 'Feed settings' mapping: items: type: mapping label: 'Feed items' mapping: view_mode: type: string label: 'Feed content' system.theme: type: config_object label: 'Theme settings' Loading