templates/platform/component/atom/paragraph.html.twig line 1

Open in your IDE?
  1. {#
  2. Clefs disponibles
  3.     - enabled
  4.     - type => default p
  5.     - class
  6.     - content
  7. #}
  8. {% if value.enabled is not defined or value.enabled %}
  9.     <{% if value.type is defined and value.type not in ['', null] %}{{ value.type }}{% else %}p{% endif %} {% if value.class is defined %} class="{{ value.class }}"{% endif %}>
  10.         {% if value.format is defined and value.format is same as('html') %}
  11.             {{ value.content|replaceKeyInText|trans|raw }}
  12.         {% else %}
  13.             {{ value.content|replaceKeyInText|trans|capitalize|raw }}
  14.         {% endif %}
  15.     </{% if value.type is defined %}{{ value.type }}{% else %}p{% endif %}>
  16. {% endif %}