public function CommerceTwigExtension::getFilters in Commerce Core 8.2
@inheritdoc
File
- src/
TwigExtension/ CommerceTwigExtension.php, line 15
Class
- CommerceTwigExtension
- Provides the Commerce Twig extensions.
Namespace
Drupal\commerce\TwigExtensionCode
public function getFilters() {
return [
new \Twig_SimpleFilter('commerce_entity_render', [
$this,
'renderEntity',
]),
];
}