public function EntityManager::getContentHubEntityTypeConfigurationEntities in Acquia Content Hub 8
Returns the list of configured Content Hub configuration entities.
Return value
\Drupal\acquia_contenthub\ContentHubEntityTypeConfigInterface[] An array of Content Hub Configuration entities
1 call to EntityManager::getContentHubEntityTypeConfigurationEntities()
- EntityManager::getContentHubEnabledEntityTypeIds in src/
EntityManager.php - Returns the list of enabled entity types for Content Hub.
File
- src/
EntityManager.php, line 699
Class
- EntityManager
- Provides a service for managing entity actions for Content Hub.
Namespace
Drupal\acquia_contenthubCode
public function getContentHubEntityTypeConfigurationEntities() {
/** @var \Drupal\Core\Entity\EntityStorageInterface $contenthub_entity_config_storage */
$contenthub_entity_config_storage = $this->entityTypeManager
->getStorage('acquia_contenthub_entity_config');
/** @var \Drupal\acquia_contenthub\ContentHubEntityTypeConfigInterface[] $contenthub_entity_config_ids */
$contenthub_entity_config_ids = $contenthub_entity_config_storage
->loadMultiple();
return $contenthub_entity_config_ids;
}