
| Current Path : /var/www/html/store/web/core/lib/Drupal/Core/Entity/Exception/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/store/web/core/lib/Drupal/Core/Entity/Exception/AmbiguousBundleClassException.php |
<?php
namespace Drupal\Core\Entity\Exception;
/**
* Exception thrown if a bundle class is defined for multiple bundles.
*
* @see \Drupal\Core\Entity\ContentEntityStorageBase::getBundleFromClass()
* @see \Drupal\Core\Entity\EntityTypeRepository::getEntityTypeFromClass()
*/
class AmbiguousBundleClassException extends AmbiguousEntityClassException {
/**
* Constructs an AmbiguousBundleClassException.
*
* @param string $class
* The bundle class which is defined for multiple bundles.
*/
public function __construct(string $class) {
$message = sprintf('Multiple bundles are using the bundle class %s.', $class);
parent::__construct($message);
}
}