Skip to content

Commit 994703e

Browse files
committed
Merge branch 'master' of github.com:pattern-lab/plugin-drupal-twig-components
2 parents 60f5600 + 6cfc233 commit 994703e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Drupal Twig Components Plugin for Pattern Lab
2+
3+
The Drupal Twig Components Plugin provides stand-alone implementations of Drupal 8's custom Twig filters, functions and tags.
4+
5+
It is a component of [Pattern Lab Twig Standard Edition for Drupal](https://github.com/pattern-lab/edition-php-drupal-standard), which can be used to develop a Drupal compatible pattern library.

dist/filters/t.filter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
2+
// Drupal translate filter
33
$filter = new Twig_SimpleFilter('t', function ($string) {
44
return $string;
55
});

dist/tags/trans.tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Code based on Drupal\Core\Template\TwigNodeTrans and Drupal\Core\Template\TwigTransTokenParser from Drupal 8 core.
4+
* Code based on `Drupal\Core\Template\TwigNodeTrans` and `Drupal\Core\Template\TwigTransTokenParser` from Drupal 8 core.
55
*/
66

77
// these files are loaded three times and we can't re-set a class

0 commit comments

Comments
 (0)