Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module enables attaching custom behaviors to any fieldable entity type, similar to paragraph behaviors. Developers can create behavior plugins that users can then enable for specific entity types and bundles, allowing for custom configurations and processing through hooks.

This project allows a user to attach behavior settings to any fieldable entity type.
The idea came from "Paragraph behaviors". And has been extended to all entity types.

It allows developers to create custom "behavior" plugins, which can be enabled for a content type.

The custom behavior plugin will then be available to enable on a specific entity type and bundle.

Once the entity type and bundle has an enabled behavior, a base field will be added.
This field will be avaible for configuration on your edit forms.

The behavior has a form, and will store the values of that form as a serialized blob in the database.

There are several hooks that can then be used to process the values entered by a user.
This way we can add classes and other stuff to the variables preprocess array.

See entity_type_behaviors.api.php for the hooks available.

There is an example module that you can look at on the basic functionality this module provides.

Related modules

There are functional entity_type behaviors you can use in the Entity Type Behaviors Pack module.

Activity

Total releases
6
First release
Feb 2025
Latest release
4 months ago
Releases (12 mo)
2 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.1.9 Stable Feb 24, 2026
2.1.8 Stable Nov 4, 2025
2.1.7 Stable Jul 1, 2025
2.1.6 Stable Apr 10, 2025
2.1.5 Stable Feb 19, 2025
2.1.x-dev Dev Feb 6, 2025