class NoCorrespondingEntityClassException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php \Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException
Exception thrown if an entity type is not represented by a class.
This might occur by calling a static method on an abstract class.
Hierarchy
- class \Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException extends \Drupal\Core\Entity\Exception\Exception
Expanded class hierarchy of NoCorrespondingEntityClassException
See also
\Drupal\Core\Entity\Entity::getEntityTypeFromStaticClass()
1 file declares its use of NoCorrespondingEntityClassException
- EntityTypeRepository.php in core/
lib/ Drupal/ Core/ Entity/ EntityTypeRepository.php - Contains \Drupal\Core\Entity\EntityTypeRepository.
File
- core/
lib/ Drupal/ Core/ Entity/ Exception/ NoCorrespondingEntityClassException.php, line 17 - Contains \Drupal\Core\Entity\Exception\NoCorrespondingEntityClassException.
Namespace
Drupal\Core\Entity\ExceptionView source
class NoCorrespondingEntityClassException extends \Exception {
/**
* Constructs an NoCorrespondingEntityClassException.
*
* @param string $class
* The class which does not correspond to an entity type.
*/
public function __construct($class) {
$message = sprintf('The %s class does not correspond to an entity type.', $class);
parent::__construct($message);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
NoCorrespondingEntityClassException:: |
public | function | Constructs an NoCorrespondingEntityClassException. |