codenator81/twig_gear
Composer 安装命令:
composer require codenator81/twig_gear
包简介
Helpers for Twig in Drupal
README 文档
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
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-08-19