You are here

private function TempStoreTrait::getTempStore in Rules 8.3

Gets the temporary storage repository from the factory.

Return value

\Drupal\Core\TempStore\SharedTempStore The shareds storage.

File

src/Ui/TempStoreTrait.php, line 209

Class

TempStoreTrait
Provides methods for modified rules components in temporary storage.

Namespace

Drupal\rules\Ui

Code

private function getTempStore() {
  if (!isset($this->tempStore)) {
    $this->tempStore = $this
      ->getTempStoreFactory()
      ->get($this
      ->getRulesUiHandler()
      ->getPluginId());
  }
  return $this->tempStore;
}