Move the access logic in FormBuilder::handleInputElement() to its own protected method

Created on 23 May 2025, 7 days ago

Problem/Motivation

FormBuilder::handleInputElement() contains a long condition that checks if #access is a boolean or a valid access result object: https://git.drupalcode.org/project/drupal/-/blob/63740f3de3c3459fa14229b...
Moving this condition to a separate method would make it easier to maintain, document and reuse.

Steps to reproduce

Proposed resolution

Create a new private method that returns a boolean.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

forms system

Created by

🇫🇷France prudloff Lille

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024