
Define entity view builders as plugins, defined per bundle. We call it PEVB in short, and heavily relay on it on our Drupal-starter.
Quickstart
This module comes with an example module, so you could quickly spin it.
- Enable "Pluggable Entity View Builder Example" module.
- Clear cache, so the new settings will kick in.
- Create a new Article node, along with the title, body some tags and an image.
- At this point nothing should happen, as we haven't enabled the setting that
- overrides core's default Node entity view builder.
- Reload the article node, and see how it's theme has changed.
It will look roughly like this:
Paragraphs Integration
PEVB has integration with Paragraphs module, as Paragraphs are nothing more than an entity, similar to a Node.
With the Paragraphs module, we may create landing pages such as the homepage, search
page, contact us, etc., that are highly customizable by site administrators.
This can be an alternative to core's Layout builder, in that it allows
developers to theme each element by itself, while site administrators can mix
and match those elements into a page.
See it in action:
- Enable the "Pluggable Entity View Builder Paragraphs Example" module.
- Article content type will now have a new "Paragraphs" field.
- Create a few Paragraphs and view the node.
Posts
Project information
252 sites report using this module
- Created by amitaibu on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.