Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For example the title field has the following twig structure:
<span{{ attributes }}>
{%- for item in items -%}
{{ item.content }}
{%- endfor -%}
</span>
For an anonymous user this is printed:
<h2 class="title">
<span data-quickedit-field-id="node/159/title/en/teaser">Diverse. Collaborative. Transformative.</span>
</h2>
I would recommend: Print this only for users with the quickedit permission.
It's a minor thing, but maybe interesting for users, that want to hide surrounding span holder markup, if the attributes are empty ...
Or is there a reason i'm not aware of?
Comments
Comment #2
Wim LeersThis is intentional, to improve cacheability. This means it can be cached across all users, anon or auth, and regardless of roles even.