public function PriceTwigExtension::getFilters in Price 8
Same name and namespace in other branches
- 3.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
- 2.0.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
- 2.x src/TwigExtension/PriceTwigExtension.php \Drupal\price\TwigExtension\PriceTwigExtension::getFilters()
- 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\TwigExtensionCode
public function getFilters() {
return [
new \Twig_SimpleFilter('price_format', [
$this,
'formatPrice',
]),
];
}