description.html.twig

{#

Description text for the Field Example.

#}

{% set edit_content_types = path('entity.node_type.collection')  %}

{% trans %}

<p>The Field Example provides a field composed of an HTML RGB value, like
<code>#ff00ff</code>. To use it, <a href={{ edit_content_types }}>add the
field to a content type</a>.</p>

{% endtrans %}

File

modules/field_example/templates/description.html.twig

View source
  1. {#
  2. Description text for the Field Example.
  3. #}
  4. {% set edit_content_types = path('entity.node_type.collection') %}
  5. {% trans %}
  6. <p>The Field Example provides a field composed of an HTML RGB value, like
  7. <code>#ff00ff</code>. To use it, <a href={{ edit_content_types }}>add the
  8. field to a content type</a>.</p>
  9. {% endtrans %}