function AmbiguousBundleClassException::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Exception/AmbiguousBundleClassException.php \Drupal\Core\Entity\Exception\AmbiguousBundleClassException::__construct()
- 10 core/lib/Drupal/Core/Entity/Exception/AmbiguousBundleClassException.php \Drupal\Core\Entity\Exception\AmbiguousBundleClassException::__construct()
Constructs an AmbiguousBundleClassException.
Parameters
string $class: The bundle class which is defined for multiple bundles.
Overrides AmbiguousEntityClassException::__construct
File
-
core/
lib/ Drupal/ Core/ Entity/ Exception/ AmbiguousBundleClassException.php, line 19
Class
- AmbiguousBundleClassException
- Exception thrown if a bundle class is defined for multiple bundles.
Namespace
Drupal\Core\Entity\ExceptionCode
public function __construct(string $class) {
$message = sprintf('Multiple bundles are using the bundle class %s.', $class);
parent::__construct($message);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.