Skip to content

Commit

Permalink
EWPP-1449: Setting negative option for links in breadcrumbs.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergepavle committed Aug 24, 2021
1 parent 9a51610 commit 832286b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oe_theme.theme
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ function oe_theme_preprocess_breadcrumb(array &$variables): void {
$title = \Drupal::service('title_resolver')->getTitle($request, $route);

unset($variables['links']);
$variables['links'] = array_map(function ($item) {
$variables['links'] = array_map(function ($item) use ($variables) {
return [
'path' => $item['url'],
'label' => $item['text'],
'negative' => $variables['ecl_branding'] === 'core' && $variables['ecl_component_library'] === 'ec',
];
}, $variables['breadcrumb']);

Expand Down

0 comments on commit 832286b

Please sign in to comment.