Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Entity Holder

No security coverage Under active development

Part of the Entity ecosystem · 310 projects

Entity Holder allows you to define permanent content placements on your site. This ensures that essential content, like your homepage or error pages, always exists at a specific path across different environments. You can configure these "holders" with a content type, a public title, and a path, optionally providing fallback content.

Features

By its nature, content is dynamic. Site editors can create, update or remove pages, so it is hard to create references or links to content from code or configuration. For example, home page is set at the basic site settings by entering its path, eg. /node/1 if you want to set the content with ID 1 as front page. Therefore, such content must exist on every environment and be protected from deletion or unpublishing.

Entity Holder allows to define permanent placements where a content of a particular type must exist. Placements, known as entity holders, are defined by configuration and requires at least an administrative title, the page path, its public title and the type of content to be hold. Holders can be created empty, that is, with no content linked, or initially linked to a existing entity. Optionally, you can set a basic fallback content to be shown for empty holders on their path. Also, each holder has a unique route (with no arguments) named entity_holder.view.<holder_id> useful to reference the page from code or from other contexts.

Use cases

  • Having a holder for home page and 403/404 error pages will make sure that the given path will be the same and will exist across environments.
  • Create an entity holder for essential landing pages that must exist at a given path.
  • Every entity holder has its own route name, so it is easy set static menu links from custom modules.

Post-Installation

Once installed, go to Structure -> Entity holders and create your first holder. Users with permission to create instances of the entity type selected in the holder will see a link to its creation form on the page with the holder path.

Related modules

  • Page Manager
    It supports the creation of new pages that are stored in configuration, and allows placing blocks within that page.
  • Default Content
    Enables modules to create new content on installation time. It could be used to create essential contents (like home page) on new site installations.

About this project

This module was published on Drupal Contribution Weekend 2024 Seville.

Ask your assistant about Entity Holder

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.

Activity

Tracked releases
4
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-alpha3 Pre-release 9–11 Apr 6, 2024
1.0.0-alpha2 Pre-release 9–10 Apr 4, 2024
1.0.0-alpha1 Pre-release 9–10 Jan 28, 2024
1.0.x-dev Dev 9–11 Jan 27, 2024