Critical error while rendering elements affected by module

Created on 23 February 2023, over 1 year ago

Problem/Motivation

Despite module priority, some special form elements can be put back partially during rendering. Personally, I was getting a critical error
TypeError: Illegal offset type in Drupal\Core\Render\ElementInfoManager->getInfo()
with Views exposed forms and form actions.
But the situation is not limited to these elements and can occur anywhere depending on conditions that are difficult to predict.

Proposed resolution

Hide form elements instead of removing them. This will secure the rendering pipeline keeping the access restriction.

πŸ› Bug report
Status

Needs review

Version

1.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Joyakas

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

Comments & Activities

Production build 0.69.0 2024