You are here

public function EckEntityTypeBundleInfo::getEntityTypeBundleMachineNames in Entity Construction Kit (ECK) 8

Retrieves the entity type bundle machine names.

Parameters

string $entity_type: The entity type id.

Return value

string[] The entity type bundle machine names.

File

src/EckEntityTypeBundleInfo.php, line 65

Class

EckEntityTypeBundleInfo
Holds bundle info for eck entity types.

Namespace

Drupal\eck

Code

public function getEntityTypeBundleMachineNames($entity_type) {
  return array_keys($this
    ->getBundleInfo($entity_type));
}