Route Condition
2,975 sites
Security covered
This module allows you to set conditions based on specific Drupal route names. This is useful for controlling where and when certain elements, like blocks, become visible, similar to how the "Pages" condition works but by matching route names instead of URL paths.
This module provides a Drupal Condition plugin based on route names.
Condition plugins can be used in various places, e.g. to determine block visibility, as a condition for the Context module, etc...
This plugin is similar to the Drupal core RequestPath ("Pages")
plugin, but allows you to match on route names (e.g. "entity.user.canonical")
instead of URL paths.
This module is compatible with Drupal 8.8, 9, 10 and 11.