function ContextDelete::setTempstore

Same name in other branches
  1. 8.x-3.x src/Form/ContextDelete.php \Drupal\ctools\Form\ContextDelete::setTempstore()

Set the temp storage.

Parameters

array $cached_values: Cached values to use in the tempstore.

Throws

\Drupal\Core\TempStore\TempStoreException

File

src/Form/ContextDelete.php, line 103

Class

ContextDelete
Provides a form for deleting an contexts and relationships.

Namespace

Drupal\ctools\Form

Code

protected function setTempstore($cached_values) {
    $this->tempstore
        ->get($this->tempstore_id)
        ->set($this->machine_name, $cached_values);
}