function DeprecatedEntityStorage::setEntityClass

Sets the entity class via deprecated means.

Parameters

string $class_name: The name of the entity class to use.

File

core/modules/system/tests/modules/entity_test_deprecated_storage/src/Storage/DeprecatedEntityStorage.php, line 21

Class

DeprecatedEntityStorage
Class for testing deprecation warnings from EntityStorageBase.

Namespace

Drupal\entity_test_deprecated_storage\Storage

Code

public function setEntityClass(string $class_name) : void {
    $this->entityClass = $class_name;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.