public function RabbitHoleEntityPluginManager::loadSupportedBundleEntityTypes in Rabbit Hole 8
Same name and namespace in other branches
- 2.x 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\PluginCode
public function loadSupportedBundleEntityTypes() {
return array_values(array_map(function ($var) {
return $this->entityTypeManager
->getStorage($var['entityType'])
->getEntityType()
->getBundleEntityType();
}, $this
->getDefinitions()));
}