- Issue created by @Joyakas
- Status changed to Needs review
almost 2 years ago 7:04pm 23 February 2023
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.
Hide form elements instead of removing them. This will secure the rendering pipeline keeping the access restriction.
Needs review
1.1
Code