protected ContentEntityType::checkStorageClass($class)
\InvalidArgumentException If the provided class does not implement \Drupal\Core\Entity\ContentEntityStorageInterface.
Overrides EntityType::checkStorageClass
\Drupal\Core\Entity\ContentEntityStorageInterface
protected function checkStorageClass($class) { $required_interface = ContentEntityStorageInterface::class; if (!is_subclass_of($class, $required_interface)) { throw new \InvalidArgumentException("$class does not implement $required_interface"); } }
© 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!ContentEntityType.php/function/ContentEntityType::checkStorageClass/8.1.x