Skip to content

Commit

Permalink
Merge pull request #11 from Victoire/paulandrieux-patch-1
Browse files Browse the repository at this point in the history
Expose current widget in breadcrumb show
  • Loading branch information
paulandrieux authored Apr 29, 2019
2 parents 10d2d08 + 844d4d7 commit 3c185a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Twig/Extension/WidgetBreadcrumbExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ public function cmsBreadcrumb(Widget $widget, $view, $entity)

return $this->container->get('templating')->render(
'VictoireWidgetBreadcrumbBundle:Breadcrumb:show.html.twig',
['breadcrumbs' => $breadcrumbs]
[
'breadcrumbs' => $breadcrumbs,
'widget' => $widget
]
);
}
}

0 comments on commit 3c185a0

Please sign in to comment.