Part of the Entity ecosystem · 306 projects
This module allows you to add custom effects and styling to how entities are displayed. You can select and configure "Entity display processor" plugins when setting up entity view modes, enabling reusable enhancements like adding CSS classes, applying dynamic effects based on field values, or creating expand/collapse sections. This provides an additional layer of display customization beyond layout configurations.
This module provides a new plugin type that enhances the regular display of entities.
Features
The module introduces a plugin type "Entity display processor".
The plugin can be chosen as part of an entity view mode.
This way, what used to be one-off implementations of hook_entity_view_alter() in your project can be turned into reusable plugins, and possibly published as part of contributed modules.
Possible effects that could be achieved:
- Add a CSS effect to the rendered entity: Shadow, background color, etc.
- Add a custom CSS class to the entity's html element.
- Display the entity in an expand/collapse box.
- Apply a dynamic effect that depends on values in the entity. E.g. a colored frame, where the color is coming from a field value.
Only few such plugins are published as part of this module.
The idea is to create more plugins as part of your specific project, theme, or in-house ecosystem.
Post-Installation
After installation, go to do e.g. `/admin/structure/types/manage/page/display/teaser`.
(assuming that a content type 'page' exists, with a view mode 'teaser')
At the bottom of the form, you can choose and configure up to one entity display processor plugin.
Later, when viewing the entity in the given view mode, the effect from the plugin will be applied.
Similar projects
You can achieve similar effects with Display Suite, or with core layout builder, if you have a layout that has the desired effect. However, with this module, you can add an additional effect that is independent of the layout.
Ask your assistant about Entity display processor
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.
More in the Entity ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta2 | Pre-release | 11 | Jan 3, 2025 | ||
| 1.0.0-beta1 | Pre-release | 11 | Jan 2, 2025 | ||
| 1.0.x-dev | Dev | 11 | Jan 2, 2025 |