You are here

protected function DomainEntitySettings::getBundles in Domain Access Entity 8

Returns bundles of the entity type.

Parameters

string $entity_type_id: The entity type ID.

Return value

array An array of bundle information where the outer array is keyed by the bundle name, or the entity type name if the entity does not have bundles. The inner arrays are associative arrays of bundle information, such as the label for the bundle.

2 calls to DomainEntitySettings::getBundles()
DomainEntitySettings::buildForm in src/Form/DomainEntitySettings.php
Form constructor.
DomainEntitySettings::submitForm in src/Form/DomainEntitySettings.php
Form submission handler.

File

src/Form/DomainEntitySettings.php, line 239

Class

DomainEntitySettings
Provides a form to configure domain fields mappings.

Namespace

Drupal\domain_entity\Form

Code

protected function getBundles($entity_type_id) {
  return $this->entityTypeBundleInfo
    ->getBundleInfo($entity_type_id);
}