Skip to content
Snippets Groups Projects
Commit 18aa4abd authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2314599 follow-up by andypost: Fix incorrect theme argument.

parent c7013bda
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment