codenator81 / twig_gear
Helpers for Twig in Drupal
Installs: 13
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:drupal-module
This package is not auto-updated.
Last update: 2024-05-11 16:29:00 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