Module Description
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.
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.
Module Link
Project Usage
325
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of customizing entity views on Drupal websites by providing a plugin-based solution for defining entity view builders per bundle, such as the Pluggable Entity View Builder Example and Pluggable Entity View Builder Paragraphs Example modules.
Data Name
pluggable_entity_view_builder