You are here

public function RabbitHoleEntityPluginManager::loadSupportedBundleEntityTypes in Rabbit Hole 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/RabbitHoleEntityPluginManager.php \Drupal\rabbit_hole\Plugin\RabbitHoleEntityPluginManager::loadSupportedBundleEntityTypes()

Load the string IDs for the supported bundle entity types.

Return value

array An array of entity type ID strings.

File

src/Plugin/RabbitHoleEntityPluginManager.php, line 99

Class

RabbitHoleEntityPluginManager
Provides the Rabbit hole entity plugin plugin manager.

Namespace

Drupal\rabbit_hole\Plugin

Code

public function loadSupportedBundleEntityTypes() {
  return array_values(array_map(function ($var) {
    return $this->entityTypeManager
      ->getStorage($var['entityType'])
      ->getEntityType()
      ->getBundleEntityType();
  }, $this
    ->getDefinitions()));
}