public function AmbiguousEntityClassException::__construct
public AmbiguousEntityClassException::__construct($class)
Constructs an AmbiguousEntityClassException.
Parameters
string $class: The entity parent class.
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Exception!AmbiguousEntityClassException.php/function/AmbiguousEntityClassException::__construct/8.1.x