You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andy Truong edited this page Jan 30, 2014
·
3 revisions
Define custom filters
To provide your custom Twig filters, create @my_module/config/twig_filters.yml:
# @file: @my_module/config/twig_filters.ymltwig_filters:
# Callback is just a functiont: t# Callback is a static methoddrupalView: [\Drupal\at_base\Twig\Filters\Views, render]# Start the filter name with __ to let at_base know that # our callback is a method on constructive class__at_config: [\Drupal\at_base\Twig\Filters\ATConfig, render]