aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/twig/definition.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template/twig/definition.php')
-rw-r--r--phpBB/includes/template/twig/definition.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/includes/template/twig/definition.php b/phpBB/includes/template/twig/definition.php
index 110437eb32..6557b209eb 100644
--- a/phpBB/includes/template/twig/definition.php
+++ b/phpBB/includes/template/twig/definition.php
@@ -47,4 +47,23 @@ class phpbb_template_twig_definition
return $this;
}
+
+ /**
+ * Append to a variable
+ *
+ * @param string $name
+ * @param string $value
+ * @return phpbb_template_twig_definition
+ */
+ public function append($name, $value)
+ {
+ if (!isset($this->definitions[$name]))
+ {
+ $this->definitions[$name] = '';
+ }
+
+ $this->definitions[$name] .= $value;
+
+ return $this;
+ }
}