Search by

drupal-eca-recipe / eca_lib_0001

jurgenhaas

Prints a message when an article node page is requested, using the controller event so that it still fires for cached pages.

Package info

gitlab.lakedrops.com/drupal/recipes/eca_lib_0001

Type:drupal-recipe

pkg:composer/drupal-eca-recipe/eca_lib_0001

Statistics

Installs: 95

Dependents: 0

Suggesters: 0

3.2.10 2026-09-17 08:22 UTC

This package is auto-updated.

Last update: 2026-09-17 08:23:01 UTC


README

ID: eca_lib_0001

If a node page gets requested and the node is of type "article", a message will be printed.

This is using the event Controller found to handle request as this is working even if pages are cached.

Requirements

This recipe includes the library's article_content_type recipe, which provides the Article content type together with its body field. Drupal 11.4 removed that content type from the Standard profile and Drupal 12 removed core's recipe for it, so the library ships its own. Composer installs it alongside this recipe.

Installation

## Import recipe
composer require drupal-eca-recipe/eca_lib_0001

# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/eca_lib_0001

# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0001

# Rebuilding caches is optional, sometimes required:
drush cr