Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Don't call the translator in breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 authored and greg0ire committed Dec 20, 2017
1 parent e1b0508 commit 540487c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Block/Breadcrumb/NewsArchiveBreadcrumbBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ protected function getMenu(BlockContextInterface $blockContext)
'routeParameters' => [
'collection' => $collection->getSlug(),
],
'extras' => [
'translation_domain' => false,
],
]);
}

Expand All @@ -64,6 +67,9 @@ protected function getMenu(BlockContextInterface $blockContext)
'routeParameters' => [
'tag' => $tag->getSlug(),
],
'extras' => [
'translation_domain' => false,
],
]);
}

Expand Down
3 changes: 3 additions & 0 deletions src/Block/Breadcrumb/NewsPostBreadcrumbBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ protected function getMenu(BlockContextInterface $blockContext)
'routeParameters' => [
'permalink' => $this->blog->getPermalinkGenerator()->generate($post),
],
'extras' => [
'translation_domain' => false,
],
]);
}

Expand Down

0 comments on commit 540487c

Please sign in to comment.