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

Installs: 13

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:drupal-module

pkg:composer/codenator81/twig_gear

dev-8.x-1.x 2015-08-19 21:42 UTC

This package is not auto-updated.

Last update: 2025-12-21 02:12:54 UTC


README

  1. 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
  2. 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