public function FilterExtension::getFilters in Thunder 8.2
Same name and namespace in other branches
- 8.5 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
- 8.3 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
- 8.4 modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
- 6.2.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
- 6.0.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
- 6.1.x modules/thunder_article/src/Twig/FilterExtension.php \Drupal\thunder_article\Twig\FilterExtension::getFilters()
Returns introduced filters.
Return value
array Declared Twig filters
File
- modules/
thunder_article/ src/ Twig/ FilterExtension.php, line 16
Class
- FilterExtension
- Introduce some twig filters.
Namespace
Drupal\thunder_article\TwigCode
public function getFilters() {
return [
new \Twig_SimpleFilter('plain_text', [
$this,
'plainText',
]),
new \Twig_SimpleFilter('basic_format', [
$this,
'basicFormat',
], [
'is_safe' => [
'html',
],
]),
];
}