Entity Type Behaviors on a node type edit form

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.

Supporting organizations: 
This project was partially made on company time.

Project information

Releases