Get the entity type when it provides bundles

Created on 23 May 2023, about 1 year ago

Problem/Motivation

When generating the permission name in the "access()" method of the "TcaAccessCheck" file, it's extracted from "$entity->getEntityTypeId()" and it works correctly for entities of types such as "Block", "User", etc. However, for entities of type "node", the method returns "node_type" instead "node" string, as shown in next screenshot.

The generated permission is "tca bypass node_type" and it should be "tca bypass node"

Proposed resolution

Gets the entity type for which entities provide bundles.

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain thebrokenbrain Las Palmas de Gran Canaria

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

Comments & Activities

Production build 0.69.0 2024