Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Entity Type Behaviors

422 sites Security covered Drupal 8–11 Entity ecosystem
View on drupal.org

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Nov 2024
Latest release
6 months ago
Releases (12 mo)
2 ▼ from 5
Maintenance
Slowing

Release Timeline

Releases

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