Incorrect type for #access in RenderElementBase documentation

Created on 23 May 2025, 7 days ago

Problem/Motivation

The documentation for RenderElementBase says "#access: (bool)" but #access can also be an AccessResultInterface object.

Steps to reproduce

Add something like this to an element:

      '#access' => AccessResult::forbidden(),

It works.

Proposed resolution

The documentation should mention that #access can be an object.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

render 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