function SqlContentEntityStorage::setTemporary

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::setTemporary()
  2. 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::setTemporary()
  3. 11.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php \Drupal\Core\Entity\Sql\SqlContentEntityStorage::setTemporary()

Changes the temporary state of the storage.

@internal Only to be used internally by Entity API.

Parameters

bool $temporary: Whether to use a temporary table mapping or not.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php, line 338

Class

SqlContentEntityStorage
A content entity database storage implementation.

Namespace

Drupal\Core\Entity\Sql

Code

public function setTemporary($temporary) {
    $this->temporary = $temporary;
}

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