function EntityType::checkStorageClass
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::checkStorageClass()
- 10 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::checkStorageClass()
- 11.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::checkStorageClass()
Checks that the provided class is compatible with the current entity type.
Parameters
string $class: The class to check.
2 calls to EntityType::checkStorageClass()
- EntityType::setStorageClass in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Sets the storage class.
- EntityType::__construct in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Constructs a new EntityType.
2 methods override EntityType::checkStorageClass()
- ConfigEntityType::checkStorageClass in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityType.php - ContentEntityType::checkStorageClass in core/
lib/ Drupal/ Core/ Entity/ ContentEntityType.php
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 517
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
protected function checkStorageClass($class) {
// Nothing to check by default.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.