diff --git a/Resources/views/Form/bootstrap.html.twig b/Resources/views/Form/bootstrap.html.twig index 6fb9667..fcd63b2 100644 --- a/Resources/views/Form/bootstrap.html.twig +++ b/Resources/views/Form/bootstrap.html.twig @@ -36,7 +36,7 @@ {% set type = type|default('text') %} - {% if style == 'inline' and (attr.placeholder is not defined or attr.placeholder is empty) and label is not sameas(false) %} + {% if style == 'inline' and (attr.placeholder is not defined or attr.placeholder is empty) and label is not same(false) %} {% if label is empty %} {% set attr = attr|merge({ 'placeholder': name|humanize }) %} {% else %} @@ -258,7 +258,7 @@ {% endif %} {%set checkboxdata %} - {% if label is not sameas(false) %} + {% if label is not same(false) %} {% if not compound %} {% set label_attr = label_attr|merge({'for': id}) %} {% endif %} diff --git a/Resources/views/Menu/bootstrap.html.twig b/Resources/views/Menu/bootstrap.html.twig index 4bbd35d..3963ce1 100644 --- a/Resources/views/Menu/bootstrap.html.twig +++ b/Resources/views/Menu/bootstrap.html.twig @@ -2,8 +2,8 @@ {% macro attributes(attributes) %} {% for name, value in attributes %} - {%- if value is not none and value is not sameas(false) -%} - {{- ' %s="%s"'|format(name, value is sameas(true) ? name|e : value|e)|raw -}} + {%- if value is not none and value is not same(false) -%} + {{- ' %s="%s"'|format(name, value is same(true) ? name|e : value|e)|raw -}} {%- endif -%} {%- endfor -%} {% endmacro %}