Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Entity Holder

No security coverage

Part of the Entity ecosystem · 235 projects

View on drupal.org

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.

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 Release date
1.0.0-alpha3 Pre-release Apr 6, 2024
1.0.0-alpha2 Pre-release Apr 4, 2024
1.0.0-alpha1 Pre-release Jan 28, 2024
1.0.x-dev Dev Jan 27, 2024