You are here

public function PriceTwigExtension::getFilters in Price 8

Same name and namespace in other branches
  1. 3.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
  2. 2.0.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()

@inheritdoc

File

src/TwigExtension/PriceTwigExtension.php, line 15

Class

PriceTwigExtension
Provides Price-specific Twig extensions.

Namespace

Drupal\price\TwigExtension

Code

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