function EntityTypeBundleInfoInterface::getBundleLabels

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php \Drupal\Core\Entity\EntityTypeBundleInfoInterface::getBundleLabels()

Gets an array of bundle labels for an entity type.

Parameters

string $entity_type_id: The entity type ID.

Return value

array An array of bundle labels, keyed by bundle id.

1 method overrides EntityTypeBundleInfoInterface::getBundleLabels()
EntityTypeBundleInfo::getBundleLabels in core/lib/Drupal/Core/Entity/EntityTypeBundleInfo.php
Gets an array of bundle labels for an entity type.

File

core/lib/Drupal/Core/Entity/EntityTypeBundleInfoInterface.php, line 44

Class

EntityTypeBundleInfoInterface
Provides an interface for an entity type bundle info.

Namespace

Drupal\Core\Entity

Code

public function getBundleLabels(string $entity_type_id) : array;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.