summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Hodgdon2013-11-20 18:26:39 (GMT)
committerJennifer Hodgdon2013-11-20 18:26:39 (GMT)
commit48f155834e895e3d5466c7d49bde5352e930b764 (patch)
treefbe72cf3d6290719c0dc1492dafb4fe97dd22542
parentfbe932254fbec4dd3700f9b40a68441712a9e70c (diff)
Issue #2102777 by tstoeckler, Gábor Hojtsy: Fix docs for update to theme_links
-rw-r--r--core/includes/theme.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index e6326d8..c4047b4 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -1268,8 +1268,14 @@ function template_preprocess_status_messages(&$variables) {
* is used as its CSS class. Each link should be itself an array, with the
* following elements:
* - title: The link text.
- * - href: The link URL. If omitted, the 'title' is shown as a plain text
- * item in the links list.
+ * - route_name: (optional) The name of the route to link to. If omitted
+ * (and if 'href' is omitted as well), the 'title' is shown as
+ * a plain text item in the links list.
+ * - route_parameters: (optional) An array of route parameters for the link.
+ * - href: (optional) The link URL. It is preferred to use 'route_name' and
+ * 'route parameters' for internal links. Use 'href' for links to external
+ * URLs. If omitted (and if 'route_name' is omitted as well), the 'title'
+ * is shown as a plain text item in the links list.
* - html: (optional) Whether or not 'title' is HTML. If set, the title
* will not be passed through
* \Drupal\Component\Utility\String::checkPlain().