public function AmbiguousEntityClassException::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Exception/AmbiguousEntityClassException.php \Drupal\Core\Entity\Exception\AmbiguousEntityClassException::__construct()
- 9 core/lib/Drupal/Core/Entity/Exception/AmbiguousEntityClassException.php \Drupal\Core\Entity\Exception\AmbiguousEntityClassException::__construct()
Constructs an AmbiguousEntityClassException.
Parameters
string $class: The entity parent class.
1 call to AmbiguousEntityClassException::__construct()
- AmbiguousBundleClassException::__construct in core/
lib/ Drupal/ Core/ Entity/ Exception/ AmbiguousBundleClassException.php - Constructs an AmbiguousBundleClassException.
1 method overrides AmbiguousEntityClassException::__construct()
- AmbiguousBundleClassException::__construct in core/
lib/ Drupal/ Core/ Entity/ Exception/ AmbiguousBundleClassException.php - Constructs an AmbiguousBundleClassException.
File
- core/
lib/ Drupal/ Core/ Entity/ Exception/ AmbiguousEntityClassException.php, line 18
Class
- AmbiguousEntityClassException
- Exception thrown if multiple entity types exist for an entity class.
Namespace
Drupal\Core\Entity\ExceptionCode
public function __construct($class) {
$message = sprintf('Multiple entity types found for %s.', $class);
parent::__construct($message);
}