File tree 1 file changed +3
-2
lines changed
view/frontend/templates/product
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ declare(strict_types=1);
7
7
8
8
use Magento \Catalog \Helper \Data as CatalogHelper ;
9
9
use Magento \Catalog \ViewModel \Product \Breadcrumbs ;
10
+ use Magento \Framework \Escaper ;
10
11
use Magento \Framework \Json \Helper \Data ;
11
12
use Magento \Theme \Block \Html \Breadcrumbs as BreadcrumbsBlock ;
12
13
use Opengento \ProductBreadcrumbs \ViewModel \Product \Breadcrumbs as BreadcrumbsConfig ;
13
14
15
+ /** @var Escaper $escaper */
14
16
/** @var BreadcrumbsBlock $block */
15
-
16
17
/** @var Breadcrumbs $viewModel */
17
18
$ viewModel = $ block ->getData ('viewModel ' );
18
19
/** @var BreadcrumbsConfig $config */
@@ -38,7 +39,7 @@ $config = $block->getData('breadcrumbsConfig');
38
39
?>
39
40
<?= $ breadcrumbs ->toHtml () ?>
40
41
<?php else : ?>
41
- <div class="breadcrumbs" aria-label="Breadcrumb" role="navigation"></div>
42
+ <div class="breadcrumbs" aria-label="<?= $ escaper -> escapeHtmlAttr ( __ ( ' Breadcrumb ' )) ?> " role="navigation"></div>
42
43
<?php endif ; ?>
43
44
<?php if (!$ config ->isServerSideRendered () || $ config ->isClientSideOverrideAllowed ()): ?>
44
45
<?php $ widget = $ this ->helper (Data::class)->jsonDecode ($ viewModel ->getJsonConfigurationHtmlEscaped ()); ?>
You can’t perform that action at this time.
0 commit comments