protected function ContentHubEntityTypeConfig::calculateDependenciesForBundle in Acquia Content Hub 8
Calculates dependencies for bundle.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The Entity Type object.
string $bundle: The entity bundle.
1 call to ContentHubEntityTypeConfig::calculateDependenciesForBundle()
- ContentHubEntityTypeConfig::calculateDependencies in src/
Entity/ ContentHubEntityTypeConfig.php - Calculates dependencies and stores them in the dependency property.
File
- src/
Entity/ ContentHubEntityTypeConfig.php, line 202
Class
- ContentHubEntityTypeConfig
- Defines a ContentHubEntityTypeConfig configuration entity class.
Namespace
Drupal\acquia_contenthub\EntityCode
protected function calculateDependenciesForBundle(EntityTypeInterface $entity_type, $bundle) {
$config_bundle = $entity_type
->getBundleConfigDependency($bundle);
$this
->addDependency($config_bundle['type'], $config_bundle['name']);
}