- Issue created by @rlhawk
- @rlhawk opened merge request.
- Status changed to Needs review
over 1 year ago 8:43pm 17 April 2023 -
rlhawk β
committed 0fa7fac4 on 2.0.x
Issue #3354412 by rlhawk, Jaspreet-Kaur: Add Twig filter to add classes
-
rlhawk β
committed 0fa7fac4 on 2.0.x
- @rlhawk opened merge request.
- @rlhawk opened merge request.
- πΊπΈUnited States rlhawk Seattle, Washington, United States
I've created a second merge request to backport this feature to the 8.x-1.x version. The only difference between this and the 2.0.x version is one line:
new \Twig_SimpleFilter('add_class', [$this, 'addClasses']),
instead of:
new TwigFilter('add_class', [$this, 'addClasses']),
The addClasses function is the same.
- πΊπΈUnited States rlhawk Seattle, Washington, United States
A new
add_class
Twig filter was just added to Drupal core in β¨ Create twig filters: |add_class and |set_attribute Fixed , which means this work need to be reverted, unfortunately. Perhaps we can come up with a new name for a class-specific filter provided by this module. -
rlhawk β
committed ebd7b836 on 2.0.x
Revert "Issue #3354412 by rlhawk, Jaspreet-Kaur: Add Twig filter to add...
-
rlhawk β
committed ebd7b836 on 2.0.x
- Status changed to Closed: outdated
over 1 year ago 8:40pm 2 May 2023