2017 © Pedro Peláez
 

drupal-module twig_gear

Helpers for Twig in Drupal

image

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

The README.md

Drupal helpers for Twig Template Engine

  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. , (*1)

AUTHOR/MAINTAINER

  • Codenator81 codenator81@gmail.com

The Versions

19/08 2015

dev-8.x-1.x

dev-8.x-1.x https://www.drupal.org/sandbox/oles89/2501921

Helpers for Twig in Drupal

  Sources   Download