public function BundleConfigManager::loadBundle in Title 8.2
Load the config entity which represents a bundle.
2 calls to BundleConfigManager::loadBundle()
- BundleConfigManager::getEnabled in src/
BundleConfigManager.php - Check the enabled/disabled status of a bundle.
- BundleConfigManager::setEnabled in src/
BundleConfigManager.php - Set the enabled/disabled status of a bundle.
File
- src/
BundleConfigManager.php, line 159
Class
- BundleConfigManager
- Allow management of the title module config.
Namespace
Drupal\titleCode
public function loadBundle($bundle) {
$manager = $this->entityTypeManager;
return $manager
->getStorage('node_type')
->load($bundle);
}