Add a method to ContentEntityBase for getting its Bundle entity

Created on 4 April 2016, over 9 years ago
Updated 24 June 2025, 14 days ago

Given an entity such as a $node, I have to do this to get the bundle entity:

  $node_type = entity_load($node->getEntityType()->getBundleEntityType(), $node->bundle());

Could we add a method to ContentEntityBase to do this?

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component

entity system

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024