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 attributes field

12 sites Security covered Drupal 10–11
View on drupal.org

This module lets you add custom settings and metadata to content entities and fields. These attributes enhance the display or behavior of content without being part of the core content itself. You can use this for things like image alignment, section backgrounds, or custom classes.

The Entity Attributes Field (EAF) module provides a field definition that allows you to add custom attributes to entities, fields, or field items.

These attributes are not part of the actual content, but rather provide additional metadata or configuration options that can enhance the display, behavior, or functionality of the content.

What are Attributes?

Attributes are additional settings or options that can be applied to content entities, fields, or field items. They are not part of the core content, but rather provide a way to customize or extend the behavior of the content.

Attributes are a part of the content entity, but they are not intended to be searched, indexed or displayed as part of the main content. Instead, they provide additional metadata or configuration options that enhance the content, but are not relevant to search queries.

Examples of attributes include

- Alignment options for images (e.g., left, right, center)
- Display settings for paragraph titles (e.g., include in table of contents, hide title)
- Background settings for sections (e.g., select from predefined background colors or images)
- Spacing or padding options for fields or field items
- Mark a link field to show as a button not a link or just mark only one link, not all
- Add custom class to your entity by a taxonomy vocabulary

How it Works:

- Add the attribute field to an entity type (e.g., node, paragraph, etc.).
- Configure the available attribute plugins for that entity or field.
- When creating or editing content, users can select and configure the available attributes for that entity or field.
- The attribute data is stored in the database as JSON, allowing for easy retrieval and manipulation.

The EAF module uses attribute plugins to provide these custom attributes. Attribute plugins are small pieces of code that define a specific attribute and its behavior.

Benefits of Using EAF Module

The EAF module provides several benefits, including:

- Flexibility: Easily add custom attributes to content entities, fields, or field items without modifying the underlying content.
Reusability: Attribute plugins can be reused across multiple content types, fields, or field items.
Extensibility: Developers can create custom attribute plugins to meet specific use cases or requirements.
By using the EAF module, you can provide a more customized and flexible content creation experience for your users, while also streamlining your development workflow.

Key Features

- Add custom attributes to entities, fields, and field items
- Utilize attribute plugins for modular and reusable attribute logic
- Compatible with various entity types and field types

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
10
Tracked since
Apr 2025
Latest release
10 months ago
Releases (12 mo)
2 ▼ from 8
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.1 Stable 10–11 Oct 17, 2025
1.0.0 Stable 10–11 Oct 17, 2025
1.0.0-alpha7 Pre-release 10–11 Jun 1, 2025
1.0.0-alpha6 Pre-release 10–11 May 31, 2025
1.0.0-alpha5 Pre-release 10–11 May 13, 2025
1.0.0-alpha4 Pre-release 10–11 Apr 8, 2025
1.0.0-alpha3 Pre-release 10–11 Apr 8, 2025
1.0.0-alpha2 Pre-release 10–11 Apr 7, 2025
1.0.0-alpha1 Pre-release 10–11 Apr 7, 2025
1.0.x-dev Dev 10–11 Apr 6, 2025