Drupal is a registered trademark of Dries Buytaert
Release: Modeler API 1.1.5 Minor update available for module modeler_api (1.1.5). Release: Save & Edit 2.2.0 Minor update available for module save_edit (2.2.0). Release: Entity 2 Text 1.3.3 Minor update available for module entity_to_text (1.3.3). Release: Scheduler Date / Time Clear 1.0.0 Initial release available for module scheduler_clear (1.0.0)! Release: Attach Inline 8.x-1.9 Minor update available for module attachinline (8.x-1.9). Release: Scolta 1.4.0 Minor update available for module scolta (1.4.0). Release: Breadcrumb custom 1.0.0 Initial release available for module breadcrumb_custom (1.0.0)! Release: Configuration Language Lock 1.0.1 Minor update available for module config_language_lock (1.0.1). Module Revived: Comment Notify 8.x-1.6 Module comment_notify updated after 10 months of inactivity (8.x-1.6). Usage Milestone: OpenTelemetry Module opentelemetry crossed 1,000 active installs.

Paragraphs Condition provides a "Paragraph type" visibility condition for blocks, and for anything else built on Drupal's condition plugin system. Instead of looking at the bundle of the page being viewed, it looks at its content: the condition applies when the entity holds a paragraph of one of the types you select.

This solves a problem that appears on every site built with Paragraphs. Some pages are not view pages but content assembled out of paragraphs: a search built from a "Search" paragraph, a map, a directory, a landing page. Targeting the blocks of those pages with the core "Pages" condition means listing every path by hand and editing that list again whenever an editor creates a new page. Targeting them by content type does not work either, because the same content type is used for everything else on the site. This condition expresses the criterion that actually matters, so the blocks keep working on pages created later without touching any configuration.

The whole paragraph tree is inspected, so paragraphs nested inside other paragraphs count. That matters on the common setup where a "Section" paragraph holds the paragraphs that do the real work. The entity is read from the current route, which means the condition works on any entity route that exposes paragraphs: nodes, taxonomy terms, media, and whatever else your site defines. There is no context mapping to configure.

Selecting several paragraph types makes the condition apply when the entity holds any of them. Leaving every type unchecked leaves the condition without effect, matching the behaviour of the conditions shipped with Drupal core. The standard "Negate the condition" checkbox is supported, so you can also hide a block on the pages that contain a given paragraph type.

The condition is written for pages that place several blocks behind the same rule. The answer is memoised per entity revision, and the fields that reference paragraphs are resolved once per bundle, so a page with four blocks sharing this condition walks the paragraph tree once per request instead of once per block.

To use it, enable the module, edit a block at Administration > Structure > Block layout, open the "Paragraph type" tab in the Visibility section, check the paragraph types the block should be visible for, and save.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
1 hour ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.x-dev Dev Aug 25, 2026