codenator81 / twig_gear
There is no license information available for the latest version (dev-8.x-1.x) of this package.
Helpers for Twig in Drupal
dev-8.x-1.x
2015-08-19 21:42 UTC
This package is not auto-updated.
Last update: 2026-05-10 04:05:13 UTC
README
-
swapClass : change CSS class to another if exist in argument
for example
{{ item.attributes|swapClass('menu-item--active-trail', 'active') }}change menu-item--active-trail to active - tg_site_name : global variable which have site name in any template {{ tg_site_name }}
Fill free to add issues! More came for my needs but if u have any idea how do this module better open issue.
AUTHOR/MAINTAINER
- Codenator81 codenator81@gmail.com