Drupal is a registered trademark of Dries Buytaert
drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)!

utilitybelt

No security coverage
View on drupal.org

Adds two development helpers for Drupal 11 theme and site builds.

utilitybelt_svg(filename) — A Twig function that loads a managed SVG file by filename, sanitizes it via enshrined/svg-sanitize, and returns safe inline markup. Cache tags from the file entity are bubbled automatically.

{{ utilitybelt_svg('logo.svg') }}

has_content — Available in node, taxonomy term, and paragraph templates. Provides a map of field machine names to booleans so templates can conditionally render fields without rendering them first.

{% if has_content.field_body %}
  <div class="body">{{ content.field_body }}</div>
{% endif %}

EntityPreprocessHooks::hasContent() is public and static, so custom preprocess hooks for other entity types can call it directly without any additional wiring.

Requirements

  • Drupal 11
  • Drupal core file module

Activity

Total releases
2
First release
May 2026
Latest release
1 month ago
Release cadence
0 days
Stability
50% stable

Releases

Version Type Release date
1.0.0 Stable May 12, 2026
1.0.x-dev Dev May 12, 2026