Route test¶
Version v2
You can apply this model as a recipe (Drupal 10.3 or later) to your own Drupal site:
1 2 3 4 5 6 7 8 9 10 11 | |
Purpose¶
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.
Dependencies¶
- module
- eca_content
- eca_misc
- modeler_api
Used plugins¶
Events¶
Conditions¶
Actions¶
Changelog¶
v1¶
Initial version
v2¶
Updated to latest plugin versions, fixed some typos, change the event from "Start dispatching request" to "Controller found to handle request"