function EntityTypeInterface::setStorageClass

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setStorageClass()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setStorageClass()
  3. 11.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setStorageClass()

Sets the storage class.

Parameters

string $class: The class for this entity type's storage.

Return value

$this

1 method overrides EntityTypeInterface::setStorageClass()
EntityType::setStorageClass in core/lib/Drupal/Core/Entity/EntityType.php
Sets the storage class.

File

core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 227

Class

EntityTypeInterface
Provides an interface for an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function setStorageClass($class);

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