Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\EntityType::checkStorageClass()
  2. 9 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 512

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.
}