8.2.x EntityType.php protected EntityType::checkStorageClass($class)
8.0.x EntityType.php protected EntityType::checkStorageClass($class)
8.1.x EntityType.php protected EntityType::checkStorageClass($class)
8.3.x EntityType.php protected EntityType::checkStorageClass($class)

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()

File

core/lib/Drupal/Core/Entity/EntityType.php, line 494

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

protected function checkStorageClass($class) {
  // Nothing to check by default.
}