Skip to content
Snippets Groups Projects
Commit 2f3f4c28 authored by Helena Zajika's avatar Helena Zajika
Browse files

Issue #3428217: Automated Drupal 11 compatibility fixes for basket

parent 57fa7e0c
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,8 @@ class BasketTwigExtension extends AbstractExtension {
*/
public function getFunctions() {
return [
new TwigFunction('basket_t', [$this, 'basketT'], ['is_safe' => ['html']]),
new TwigFunction('basket_image', [$this, 'basketImage'], ['is_safe' => ['html']]),
new TwigFunction('basket_t', $this->basketT(...), ['is_safe' => ['html']]),
new TwigFunction('basket_image', $this->basketImage(...), ['is_safe' => ['html']]),
];
}
......@@ -34,7 +34,7 @@ class BasketTwigExtension extends AbstractExtension {
*/
public function getFilters() {
return [
new TwigFilter('basket_number_format', [$this, 'basketNumberFormat']),
new TwigFilter('basket_number_format', $this->basketNumberFormat(...)),
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment