Only attach template exposed form region if is selected

Created on 28 November 2022, almost 2 years ago
Updated 14 March 2023, over 1 year ago

Problem/Motivation

If we are using the display "Layout builder" at the view, the same template with regions is still used despite not using the "Exposed form region" plugin.

This breaks any other views that are using the "Layout Builder" display.

Steps to reproduce

Create a view that uses "Exposed Form Region" and it takes "views-view--layout-builder--efr.html.twig" template.
Create a view that NOT use "Exposed Form Region", and it ALSO takes "views-view--layout-builder--efr.html.twig" template.

Proposed resolution

Limit the template #theme attribute only if current exposed form plugin is "exposed_form_region" plugin Id.

Also minimal fixes about little warnings.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024