This project is not covered by Drupal’s security advisory policy.
Frequently reusable snippets from Drupal code, that it seemed logical to
abstract into a reusable module code. All snippets are aimed at being reusable and failsafe.
Service name: butils
Sections / Traits
Module contains traits with reusable snippets in current areas:
- Twig
- Arrays
- CSV read/write,
- Current entities,
- Datetime,
- Debugging,
- DomDocument,
- Entitiy,
- Field,
- File,
- HTML,
- ImageStyle,
- JsonAPI,
- Media,
- Menu,
- Paragraphs,
- Redirects,
- SQLQuery,
- State,
- String,
- Taxonomy,
- Truncate,
- Uri,
- User,
- Views,
- XML.
Project information
- Project categories: Developer tools
4 sites report using this module
- Created by alexrayu on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
3.0.26
released 20 February 2026
Works with Drupal: ^10.1 || ^11
Added mediaByUri($uri, $field_name) function to mediaTrait.
Install:
