Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
18aa4abd
Commit
18aa4abd
authored
Aug 25, 2014
by
webchick
Browse files
Issue
#2314599
follow-up by andypost: Fix incorrect theme argument.
parent
c7013bda
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/includes/theme.inc
View file @
18aa4abd
...
...
@@ -2316,9 +2316,9 @@ function template_preprocess_field_multiple_value_form(&$variables) {
* - links: A list of \Drupal\Core\Link objects which should be rendered.
*/
function
template_preprocess_breadcrumb
(
&
$variables
)
{
/** @var \Drupal\Core\Link[] $links */
$links
=
$variables
[
'links'
];
foreach
(
$links
as
$key
=>
$link
)
{
$variables
[
'breadcrumb'
]
=
array
();
/** @var \Drupal\Core\Link $link */
foreach
(
$
variables
[
'
links
'
]
as
$key
=>
$link
)
{
$variables
[
'breadcrumb'
][
$key
]
=
array
(
'text'
=>
$link
->
getText
(),
'url'
=>
$link
->
getUrl
()
->
toString
());
}
}
...
...
@@ -2385,7 +2385,7 @@ function drupal_common_theme() {
'template'
=>
'image'
,
),
'breadcrumb'
=>
array
(
'variables'
=>
array
(
'links'
=>
array
(),
'breadcrumb'
=>
array
()),
'variables'
=>
array
(
'links'
=>
array
()),
'template'
=>
'breadcrumb'
,
),
'table'
=>
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment