You are here

public function PriceTwigExtension::getFilters in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
  2. 3.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
  3. 2.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
  4. 3.0.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()

Returns array of registered filters.

File

src/TwigExtension/PriceTwigExtension.php, line 17

Class

PriceTwigExtension
Provides Price-specific Twig extensions.

Namespace

Drupal\price\TwigExtension

Code

public function getFilters() {
  return [
    new TwigFilter('price_format', [
      $this,
      'formatPrice',
    ]),
  ];
}