Commit 1b1d4571 authored by catch's avatar catch
Browse files

Issue #2610520 by quietone, snehi, MiSc, hansfn, Ben Coleman, Antoniya:...

Issue #2610520 by quietone, snehi, MiSc, hansfn, Ben Coleman, Antoniya: Documentation about aggregator feed block incorrect

(cherry picked from commit 98a9ec75)
parent ca21c4b9
...@@ -47,7 +47,7 @@ function aggregator_help($route_name, RouteMatchInterface $route_match) { ...@@ -47,7 +47,7 @@ function aggregator_help($route_name, RouteMatchInterface $route_match) {
// Don't use placeholders for possibility to change URLs for translators. // Don't use placeholders for possibility to change URLs for translators.
$output = '<p>' . t('Many sites publish their headlines and posts in feeds, using a number of standardized XML-based formats. The aggregator supports <a href="http://en.wikipedia.org/wiki/Rss">RSS</a>, <a href="http://en.wikipedia.org/wiki/Resource_Description_Framework">RDF</a>, and <a href="http://en.wikipedia.org/wiki/Atom_%28standard%29">Atom</a>.') . '</p>'; $output = '<p>' . t('Many sites publish their headlines and posts in feeds, using a number of standardized XML-based formats. The aggregator supports <a href="http://en.wikipedia.org/wiki/Rss">RSS</a>, <a href="http://en.wikipedia.org/wiki/Resource_Description_Framework">RDF</a>, and <a href="http://en.wikipedia.org/wiki/Atom_%28standard%29">Atom</a>.') . '</p>';
// cspell:ignore addfeed // cspell:ignore addfeed
$output .= '<p>' . t('Current feeds are listed below, and <a href=":addfeed">new feeds may be added</a>. For each feed, the <em>latest items</em> block may be enabled at the <a href=":block">blocks administration page</a>.', [':addfeed' => Url::fromRoute('aggregator.feed_add')->toString(), ':block' => (\Drupal::moduleHandler()->moduleExists('block')) ? Url::fromRoute('block.admin_display')->toString() : '#']) . '</p>'; $output .= '<p>' . t('Current feeds are listed below, and <a href=":addfeed">new feeds may be added</a>. For each feed, the <em>@block_name</em> block may be enabled at the <a href=":block">block layout page</a>.', [':addfeed' => Url::fromRoute('aggregator.feed_add')->toString(), '@block_name' => t('Aggregator feed'), ':block' => (\Drupal::moduleHandler()->moduleExists('block')) ? Url::fromRoute('block.admin_display')->toString() : '#']) . '</p>';
return $output; return $output;
case 'aggregator.feed_add': case 'aggregator.feed_add':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment