2017 © Pedro Peláez
 

drupal-module avb_twig

Drupal 8 Twig Extension. Provides custom twig functions and filters.

image

avblink/avb_twig

Drupal 8 Twig Extension. Provides custom twig functions and filters.

  • Friday, April 28, 2017
  • by avblink
  • Repository
  • 1 Watchers
  • 0 Stars
  • 605 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Drupal Twig Extension by AVB Link

Contains Drupal Twig functions and filters., (*1)

  • Get current entity from path.
{% set node = avb_twig_current_entity('node') %}
  • Assign new Attribute() class to a variable
{% set attributes = avb_twig_create_attribute(['class', ['class1', 'class2']]) %}
{{ avb_twig_create_attribute().addClass(['class1', 'class2'])}}
  • Add 'style' attribute
{% set attributes = avb_twig_create_attribute().addStyle({'background-color': 'red'}) %}

The Versions

28/04 2017

dev-master

9999999-dev https://github.com/avblink/avb_twig

Drupal 8 Twig Extension. Provides custom twig functions and filters.

  Sources   Download

The Requires

 

twig extension drupal

28/04 2017

v1.0.0

1.0.0.0 https://github.com/avblink/avb_twig

Drupal 8 Twig Extension. Provides custom twig functions and filters.

  Sources   Download

The Requires

 

twig extension drupal