public function BackgroundImageManager::getEntityTypeBundleEntityType in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getEntityTypeBundleEntityType()
- 2.0.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getEntityTypeBundleEntityType()
Retrieves the bundle info for a given entity type.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: An EntityTypeInterface object.
Return value
\Drupal\Core\Entity\EntityTypeInterface|null The bundle entity type associated with provided entity type.
Overrides BackgroundImageManagerInterface::getEntityTypeBundleEntityType
File
- src/
BackgroundImageManager.php, line 562
Class
Namespace
Drupal\background_imageCode
public function getEntityTypeBundleEntityType(EntityTypeInterface $entity_type) {
if ($bundle_entity_type = $entity_type
->getBundleEntityType()) {
return $this->entityTypeManager
->getDefinition($bundle_entity_type);
}
return NULL;
}