Skip to content

Commit 2611932

Browse files
committed
Issue #3414920 by quietone, m0d: Fix documentation redirects to Drupal 7 docs
1 parent 5271741 commit 2611932

File tree

15 files changed

+17
-21
lines changed

15 files changed

+17
-21
lines changed

USAGE.txt

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ More about configuration:
1515
See INSTALL.txt and UPDATE.txt in the "core" directory.
1616
* Learn about how to use Drupal to create your site:
1717
https://www.drupal.org/documentation
18-
* Follow best practices:
19-
https://www.drupal.org/best-practices
2018
* Download contributed modules to /modules to extend Drupal's functionality:
2119
https://www.drupal.org/project/project_module
2220
* See also: "Developing for Drupal" for writing your own modules, below.

assets/scaffold/files/default.settings.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@
181181
*
182182
* WARNING: The above defaults are designed for database portability. Changing
183183
* them may cause unexpected behavior, including potential data loss. See
184-
* https://www.drupal.org/developing/api/database/configuration for more
185-
* information on these defaults and the potential issues.
184+
* https://www.drupal.org/docs/8/api/database-api/database-configuration for
185+
* more information on these defaults and the potential issues.
186186
*
187187
* More details can be found in the constructor methods for each driver:
188188
* - \Drupal\mysql\Driver\Database\mysql\Connection::__construct()

assets/scaffold/files/example.sites.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@
5353
*
5454
* @see default.settings.php
5555
* @see \Drupal\Core\DrupalKernel::getSitePath()
56-
* @see https://www.drupal.org/documentation/install/multi-site
56+
* @see https://www.drupal.org/docs/getting-started/multisite-drupal
5757
*/

core.api.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1555,9 +1555,7 @@
15551555
* Ideally, all code that is included in Drupal Core and contributed modules,
15561556
* themes, and distributions will be secure, internationalized, maintainable,
15571557
* and efficient. In order to facilitate this, the Drupal community has
1558-
* developed a set of guidelines and standards for developers to follow. Most of
1559-
* these standards can be found under
1560-
* @link https://www.drupal.org/developing/best-practices Best practices on Drupal.org @endlink
1558+
* developed a set of guidelines and standards for developers to follow.
15611559
*
15621560
* Standards and best practices that developers should be aware of include:
15631561
* - Security: https://www.drupal.org/writing-secure-code and the

lib/Drupal/Core/Database/database.api.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* mysqli or oci8.
3030
*
3131
* For more detailed information on the database abstraction layer, see
32-
* https://www.drupal.org/docs/8/api/database-api/database-api-overview.
32+
* https://www.drupal.org/docs/drupal-apis/database-api/database-api-overview.
3333
*
3434
* @section sec_entity Querying entities
3535
* Any query on Drupal entities or fields should use the Entity Query API. See
@@ -119,7 +119,7 @@
119119
*
120120
* There are also methods to join to other tables, add fields with aliases,
121121
* isNull() to query for NULL values, etc. See
122-
* https://www.drupal.org/developing/api/database for many more details.
122+
* https://www.drupal.org/docs/drupal-apis/database-api for many more details.
123123
*
124124
* One note on chaining: It is common in the dynamic database API to chain
125125
* method calls (as illustrated here), because most of the query methods modify
@@ -240,7 +240,7 @@
240240
* if you had a connection object variable $connection available to use. See
241241
* also the @link container Services and Dependency Injection topic. @endlink
242242
*
243-
* @see https://www.drupal.org/developing/api/database
243+
* @see https://www.drupal.org/docs/drupal-apis/database-api
244244
* @see entity_api
245245
* @see schemaapi
246246
*

modules/content_translation/content_translation.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function content_translation_help($route_name, RouteMatchInterface $route_match)
2828
case 'help.page.content_translation':
2929
$output = '';
3030
$output .= '<h2>' . t('About') . '</h2>';
31-
$output .= '<p>' . t('The Content Translation module allows you to translate content, comments, content blocks, taxonomy terms, users and other <a href=":field_help" title="Field module help, with background on content entities">content entities</a>. Together with the modules <a href=":language">Language</a>, <a href=":config-trans">Configuration Translation</a>, and <a href=":locale">Interface Translation</a>, it allows you to build multilingual websites. For more information, see the <a href=":translation-entity">online documentation for the Content Translation module</a>.', [':locale' => (\Drupal::moduleHandler()->moduleExists('locale')) ? Url::fromRoute('help.page', ['name' => 'locale'])->toString() : '#', ':config-trans' => (\Drupal::moduleHandler()->moduleExists('config_translation')) ? Url::fromRoute('help.page', ['name' => 'config_translation'])->toString() : '#', ':language' => Url::fromRoute('help.page', ['name' => 'language'])->toString(), ':translation-entity' => 'https://www.drupal.org/documentation/modules/translation', ':field_help' => Url::fromRoute('help.page', ['name' => 'field'])->toString()]) . '</p>';
31+
$output .= '<p>' . t('The Content Translation module allows you to translate content, comments, content blocks, taxonomy terms, users and other <a href=":field_help" title="Field module help, with background on content entities">content entities</a>. Together with the modules <a href=":language">Language</a>, <a href=":config-trans">Configuration Translation</a>, and <a href=":locale">Interface Translation</a>, it allows you to build multilingual websites. For more information, see the <a href=":translation-entity">online documentation for the Content Translation module</a>.', [':locale' => (\Drupal::moduleHandler()->moduleExists('locale')) ? Url::fromRoute('help.page', ['name' => 'locale'])->toString() : '#', ':config-trans' => (\Drupal::moduleHandler()->moduleExists('config_translation')) ? Url::fromRoute('help.page', ['name' => 'config_translation'])->toString() : '#', ':language' => Url::fromRoute('help.page', ['name' => 'language'])->toString(), ':translation-entity' => 'https://www.drupal.org/docs/8/core/modules/content-translation', ':field_help' => Url::fromRoute('help.page', ['name' => 'field'])->toString()]) . '</p>';
3232
$output .= '<h2>' . t('Uses') . '</h2>';
3333
$output .= '<dl>';
3434
$output .= '<dt>' . t('Enabling translation') . '</dt>';

modules/contextual/contextual.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function contextual_help($route_name, RouteMatchInterface $route_match) {
7777
case 'help.page.contextual':
7878
$output = '';
7979
$output .= '<h2>' . t('About') . '</h2>';
80-
$output .= '<p>' . t('The Contextual links module gives users with the <em>Use contextual links</em> permission quick access to tasks associated with certain areas of pages on your site. For example, a menu displayed as a block has links to edit the menu and configure the block. For more information, see the <a href=":contextual">online documentation for the Contextual Links module</a>.', [':contextual' => 'https://www.drupal.org/documentation/modules/contextual']) . '</p>';
80+
$output .= '<p>' . t('The Contextual links module gives users with the <em>Use contextual links</em> permission quick access to tasks associated with certain areas of pages on your site. For example, a menu displayed as a block has links to edit the menu and configure the block. For more information, see the <a href=":contextual">online documentation for the Contextual Links module</a>.', [':contextual' => 'https://www.drupal.org/docs/8/core/modules/contextual']) . '</p>';
8181
$output .= '<h2>' . t('Uses') . '</h2>';
8282
$output .= '<dl>';
8383
$output .= '<dt>' . t('Displaying contextual links') . '</dt>';

modules/field_ui/field_ui.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function field_ui_help($route_name, RouteMatchInterface $route_match) {
2626
case 'help.page.field_ui':
2727
$output = '';
2828
$output .= '<h2>' . t('About') . '</h2>';
29-
$output .= '<p>' . t('The Field UI module provides an administrative user interface (UI) for managing and displaying fields. Fields can be attached to most content entity sub-types. Different field types, widgets, and formatters are provided by the modules installed on your site, and managed by the Field module. For background information and terminology related to fields and entities, see the <a href=":field">Field module help page</a>. For more information about the Field UI, see the <a href=":field_ui_docs">online documentation for the Field UI module</a>.', [':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString(), ':field_ui_docs' => 'https://www.drupal.org/documentation/modules/field-ui']) . '</p>';
29+
$output .= '<p>' . t('The Field UI module provides an administrative user interface (UI) for managing and displaying fields. Fields can be attached to most content entity sub-types. Different field types, widgets, and formatters are provided by the modules installed on your site, and managed by the Field module. For background information and terminology related to fields and entities, see the <a href=":field">Field module help page</a>. For more information about the Field UI, see the <a href=":field_ui_docs">online documentation for the Field UI module</a>.', [':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString(), ':field_ui_docs' => 'https://www.drupal.org/docs/8/core/modules/field-ui']) . '</p>';
3030
$output .= '<h2>' . t('Uses') . '</h2>';
3131
$output .= '<dl>';
3232
$output .= '<dt>' . t('Creating a field') . '</dt>';

modules/menu_ui/menu_ui.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function menu_ui_help($route_name, RouteMatchInterface $route_match) {
3030
case 'help.page.menu_ui':
3131
$output = '';
3232
$output .= '<h2>' . t('About') . '</h2>';
33-
$output .= '<p>' . t('The Menu UI module provides an interface for managing menus. A menu is a hierarchical collection of links, which can be within or external to the site, generally used for navigation. For more information, see the <a href=":menu">online documentation for the Menu UI module</a>.', [':menu' => 'https://www.drupal.org/documentation/modules/menu/']) . '</p>';
33+
$output .= '<p>' . t('The Menu UI module provides an interface for managing menus. A menu is a hierarchical collection of links, which can be within or external to the site, generally used for navigation. For more information, see the <a href=":menu">online documentation for the Menu UI module</a>.', [':menu' => 'https://www.drupal.org/docs/core-modules-and-themes/core-modules/menu-ui-module']) . '</p>';
3434
$output .= '<h2>' . t('Uses') . '</h2>';
3535
$output .= '<dl>';
3636
$output .= '<dt>' . t('Managing menus') . '</dt>';

modules/migrate/src/Plugin/migrate/source/SqlBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
* For a complete example on migrating data from an SQL source, refer to
6464
* https://www.drupal.org/docs/8/api/migrate-api/migrating-data-from-sql-source
6565
*
66-
* @see https://www.drupal.org/docs/8/api/database-api
66+
* @see https://www.drupal.org/docs/drupal-apis/database-api
6767
* @see \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase
6868
*/
6969
abstract class SqlBase extends SourcePluginBase implements ContainerFactoryPluginInterface, RequirementsInterface {

modules/node/node.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function node_help($route_name, RouteMatchInterface $route_match) {
5656
case 'help.page.node':
5757
$output = '';
5858
$output .= '<h2>' . t('About') . '</h2>';
59-
$output .= '<p>' . t('The Node module manages the creation, editing, deletion, settings, and display of the main site content. Content items managed by the Node module are typically displayed as pages on your site, and include a title, some meta-data (author, creation time, content type, etc.), and optional fields containing text or other data (fields are managed by the <a href=":field">Field module</a>). For more information, see the <a href=":node">online documentation for the Node module</a>.', [':node' => 'https://www.drupal.org/documentation/modules/node', ':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString()]) . '</p>';
59+
$output .= '<p>' . t('The Node module manages the creation, editing, deletion, settings, and display of the main site content. Content items managed by the Node module are typically displayed as pages on your site, and include a title, some meta-data (author, creation time, content type, etc.), and optional fields containing text or other data (fields are managed by the <a href=":field">Field module</a>). For more information, see the <a href=":node">online documentation for the Node module</a>.', [':node' => 'https://www.drupal.org/docs/core-modules-and-themes/core-modules/node-module', ':field' => Url::fromRoute('help.page', ['name' => 'field'])->toString()]) . '</p>';
6060
$output .= '<h2>' . t('Uses') . '</h2>';
6161
$output .= '<dl>';
6262
$output .= '<dt>' . t('Creating content') . '</dt>';

modules/shortcut/shortcut.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function shortcut_help($route_name, RouteMatchInterface $route_match) {
2121
switch ($route_name) {
2222
case 'help.page.shortcut':
2323
$output = '<h2>' . t('About') . '</h2>';
24-
$output .= '<p>' . t('The Shortcut module allows users to create sets of <em>shortcut</em> links to commonly-visited pages of the site. Shortcuts are contained within <em>sets</em>. Each user with <em>Select any shortcut set</em> permission can select a shortcut set created by anyone at the site. For more information, see the <a href=":shortcut">online documentation for the Shortcut module</a>.', [':shortcut' => 'https://www.drupal.org/documentation/modules/shortcut']) . '</p>';
24+
$output .= '<p>' . t('The Shortcut module allows users to create sets of <em>shortcut</em> links to commonly-visited pages of the site. Shortcuts are contained within <em>sets</em>. Each user with <em>Select any shortcut set</em> permission can select a shortcut set created by anyone at the site. For more information, see the <a href=":shortcut">online documentation for the Shortcut module</a>.', [':shortcut' => 'https://www.drupal.org/docs/8/core/modules/shortcut']) . '</p>';
2525
$output .= '<h2>' . t('Uses') . '</h2>';
2626
$output .= '<dl><dt>' . t('Administering shortcuts') . '</dt>';
2727
$output .= '<dd>' . t('Users with the <em>Administer shortcuts</em> permission can manage shortcut sets and edit the shortcuts within sets from the <a href=":shortcuts">Shortcuts administration page</a>.', [':shortcuts' => Url::fromRoute('entity.shortcut_set.collection')->toString()]) . '</dd>';

modules/statistics/src/Plugin/migrate/destination/NodeCounter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function import(Row $row, array $old_destination_id_values = []) {
100100
->expression('totalcount', '[totalcount] + :totalcount', [':totalcount' => $totalcount])
101101
// Per Drupal policy: "A query may have any number of placeholders, but
102102
// all must have unique names even if they have the same value."
103-
// https://www.drupal.org/docs/8/api/database-api/static-queries#placeholders
103+
// https://www.drupal.org/docs/drupal-apis/database-api/static-queries#placeholders
104104
->expression('timestamp', 'CASE WHEN [timestamp] > :timestamp1 THEN [timestamp] ELSE :timestamp2 END', [':timestamp1' => $timestamp, ':timestamp2' => $timestamp])
105105
->execute();
106106

modules/taxonomy/taxonomy.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function taxonomy_help($route_name, RouteMatchInterface $route_match) {
2323
$output = '';
2424
$output .= '<h2>' . t('About') . '</h2>';
2525
$output .= '<p>' . t('The Taxonomy module allows users who have permission to create and edit content to categorize (tag) content of that type. Users who have the <em>Administer vocabularies and terms</em> <a href=":permissions" title="Taxonomy module permissions">permission</a> can add <em>vocabularies</em> that contain a set of related <em>terms</em>. The terms in a vocabulary can either be pre-set by an administrator or built gradually as content is added and edited. Terms may be organized hierarchically if desired.', [':permissions' => Url::fromRoute('user.admin_permissions.module', ['modules' => 'taxonomy'])->toString()]) . '</p>';
26-
$output .= '<p>' . t('For more information, see the <a href=":taxonomy">online documentation for the Taxonomy module</a>.', [':taxonomy' => 'https://www.drupal.org/documentation/modules/taxonomy/']) . '</p>';
26+
$output .= '<p>' . t('For more information, see the <a href=":taxonomy">online documentation for the Taxonomy module</a>.', [':taxonomy' => 'https://www.drupal.org/docs/8/core/modules/taxonomy']) . '</p>';
2727
$output .= '<h2>' . t('Uses') . '</h2>';
2828
$output .= '<dl>';
2929
$output .= '<dt>' . t('Managing vocabularies') . '</dt>';

modules/toolbar/toolbar.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function toolbar_help($route_name, RouteMatchInterface $route_match) {
2121
switch ($route_name) {
2222
case 'help.page.toolbar':
2323
$output = '<h2>' . t('About') . '</h2>';
24-
$output .= '<p>' . t('The Toolbar module provides a toolbar for site administrators, which displays tabs and trays provided by the Toolbar module itself and other modules. For more information, see the <a href=":toolbar_docs">online documentation for the Toolbar module</a>.', [':toolbar_docs' => 'https://www.drupal.org/documentation/modules/toolbar']) . '</p>';
24+
$output .= '<p>' . t('The Toolbar module provides a toolbar for site administrators, which displays tabs and trays provided by the Toolbar module itself and other modules. For more information, see the <a href=":toolbar_docs">online documentation for the Toolbar module</a>.', [':toolbar_docs' => 'https://www.drupal.org/docs/8/core/modules/toolbar']) . '</p>';
2525
$output .= '<h4>' . t('Terminology') . '</h4>';
2626
$output .= '<dl>';
2727
$output .= '<dt>' . t('Tabs') . '</dt>';

0 commit comments

Comments
 (0)