Verified Commit d36a5c5f authored by Andrei Mateescu's avatar Andrei Mateescu
Browse files

task: #3581808 Remove Shortcut from Help and comments

By: smustgrave
By: quietone
By: andypost
By: amateescu
parent b4c833bf
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,8 +27,8 @@
 *   '%new_path' => $helper->newPath(),
 *   '%change_record' => $change_record,
 *  ];
 * $this->logger->warning('A user was redirected from %old_path. This redirect will be removed in a future version of Drupal. Update links, shortcuts, and bookmarks to use %new_path. See %change_record for more information.', $params);
 * $message = $this->t('You have been redirected from %old_path. Update links, shortcuts, and bookmarks to use %new_path.', $params);
 * $this->logger->warning('A user was redirected from %old_path. This redirect will be removed in a future version of Drupal. Update links and bookmarks to use %new_path. See %change_record for more information.', $params);
 * $message = $this->t('You have been redirected from %old_path. Update links and bookmarks to use %new_path.', $params);
 * $this->messenger()->addWarning($message);
 * return $helper->redirect();
 * @endcode
+1 −10
Original line number Diff line number Diff line
@@ -197,16 +197,7 @@ protected function doGenerate(array $variables, array $defaults, array $tokens,
    // gap.
    $optional = TRUE;
    // The structure of the tokens array varies according to the compiled route.
    // Examples:
    // @code
    // [
    //  [0 => 'text', 1 => '/add-link-inline'],
    //  [0 => 'variable', 1 => '/', 2 => '[^/]++', 3 => 'shortcut_set'],
    //  [0 => 'text', 1 => '/admin/config/user-interface/shortcut/manage'],
    // ]
    // @endcode
    // This is the structure for the "shortcut.link_add_inline" route.
    //
    // Example:
    // @code
    // [
    //   [ 0 => 'text', 1 => '/admin/config' ]
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@ related:
<ul>
  <li>{% trans %}Accessibility features, to enable all users to perform administrative tasks. See {{ accessibility_topic }} for more information.{% endtrans %}</li>
  <li>{% trans %}A menu system, which you can navigate to find pages for administrative tasks. The core Toolbar module displays this menu on the top or left side of the page (right side in right-to-left languages). There are also contributed module replacements for the core Toolbar module, with additional features, such as the <a href="https://www.drupal.org/project/admin_toolbar">Admin Toolbar module</a>.{% endtrans %}</li>
  <li>{% trans %}The core Shortcuts module enhances the toolbar with a configurable list of links to commonly-used tasks.{% endtrans %}</li>
  <li>{% trans %}If you install the core Contextual Links module, non-administrative pages will contain links leading to related administrative tasks.{% endtrans %}</li>
  <li>{% trans %}The core Help module displays help topics, and provides a Help block that can be placed on administrative pages to provide an overview of their functionality.{% endtrans %}</li>
</ul>
+2 −2
Original line number Diff line number Diff line
@@ -6,10 +6,10 @@ related:
<h2>{% trans %}Goal{% endtrans %}</h2>
<p>{% trans %}Create, view, and use a set of shortcuts to access administrative pages.{% endtrans %}</p>
<h2>{% trans %}What are shortcuts?{% endtrans %}</h2>
<p>{% trans %}<em>Shortcuts</em> are quick links to administrative pages; they are managed by the core Shortcut module. A site can have one or more <em>shortcut sets</em>, which can be shared by one or more users (by default, there is only one set shared by all users); each set contains a limited number of shortcuts. Users need <em>Use shortcuts</em> permission to view shortcuts; <em>Edit current shortcut set</em> permission to add, delete, or edit the shortcuts in the set assigned to them; and <em>Select any shortcut set</em> permission to select a different shortcut set when editing their user profile. There is also an <em>Administer shortcuts</em> permission, which allows an administrator to do any of these actions, as well as select shortcut sets for other users.{% endtrans %}</p>
<p>{% trans %}<em>Shortcuts</em> are quick links to administrative pages. A site can have one or more <em>shortcut sets</em>, which can be shared by one or more users (by default, there is only one set shared by all users); each set contains a limited number of shortcuts. Users need <em>Use shortcuts</em> permission to view shortcuts; <em>Edit current shortcut set</em> permission to add, delete, or edit the shortcuts in the set assigned to them; and <em>Select any shortcut set</em> permission to select a different shortcut set when editing their user profile. There is also an <em>Administer shortcuts</em> permission, which allows an administrator to do any of these actions, as well as select shortcut sets for other users.{% endtrans %}</p>
<h2>{% trans %}Steps{% endtrans %}</h2>
<ol>
  <li>{% trans %}Make sure that the core Shortcut module is installed, and that you have a role with <em>Edit current shortcut set</em> or <em>Administer shortcuts</em> permission. Also, make sure that a toolbar module is installed (either the core Toolbar module or a contributed module replacement).{% endtrans %}</li>
  <li>{% trans %}Make sure that the Shortcut module is installed, and that you have a role with <em>Edit current shortcut set</em> or <em>Administer shortcuts</em> permission. Also, make sure that a toolbar module is installed (either the core Toolbar module or a contributed module replacement).{% endtrans %}</li>
  <li>{% trans %}Navigate to an administrative page that you want in your shortcut list.{% endtrans %}</li>
  <li>{% trans %}Click the shortcut link to add the page to your shortcut list -- in the core Claro administrative theme, the link looks like a star, and is displayed next to the page title. However, if the page is already in your shortcut set, clicking the shortcut link will remove it from your shortcut set.{% endtrans %}</li>
  <li>{% trans %}Repeat until all the desired links have been added to your shortcut set.{% endtrans %}</li>