Permalink
Browse files

Rename Transformation Twig extensions

Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
  • Loading branch information...
laps15 committed Aug 1, 2018
1 parent 0ba17c6 commit ed8aadd71baf7ab2262c60eaaa0149e9c587c9de
@@ -30,11 +30,11 @@ public function getFunctions()
$transformations = new Transformations();
return [
new TwigFunction(
'Transformations_getDescription',
'get_description',
[$transformations, 'getDescription']
),
new TwigFunction(
'Transformations_getName',
'get_name',
[$transformations, 'getName']
),
];
@@ -9,11 +9,11 @@
and mime_map[column_meta['Field']][type] matches
'@' ~ available_mime[type ~ '_file_quoted'][mimekey] ~ '3?@i'
? 'selected ' %}
{% set tooltip = Transformations_getDescription(
{% set tooltip = get_description(
available_mime[type ~ '_file'][mimekey]
) %}
{% set parts = transform|split(':') %}
{% set name = Transformations_getName(
{% set name = get_name(
available_mime[type ~ '_file'][mimekey]
) ~ ' (' ~ parts[0]|lower ~ ':' ~ parts[1] ~ ')' %}
<option value="{{ available_mime[type ~ '_file'][mimekey] }}"

0 comments on commit ed8aadd

Please sign in to comment.