rename EntityType::getBundleEntityType() and EntityType:bundle_entity_type to reflect they return IDs

Created on 4 April 2016, over 8 years ago
Updated 8 February 2023, almost 2 years ago
  /**
   * The name of the entity type which provides bundles.
   *
   * @var string
   */
  protected $bundle_entity_type = NULL;

...

  public function getBundleEntityType() {
    return $this->bundle_entity_type;
  }

This function returns a type ID string. However, there's a pattern in the entity system whereby functions that return a type ID string are called fooTypeId, eg getEntityTypeId().

📌 Task
Status

Needs work

Version

10.1

Component
Entity 

Last updated about 1 hour ago

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

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