drupal-module twig_gear
Helpers for Twig in Drupal
codenator81/twig_gear
Helpers for Twig in Drupal
- Wednesday, August 19, 2015
- by Codenator81
- Repository
- 1 Watchers
- 1 Stars
- 1 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Drupal helpers for Twig Template Engine
-
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.
, (*1)
AUTHOR/MAINTAINER
- Codenator81 codenator81@gmail.com