You are here

public function TempStore::setCid in AJAX Comments 8

Store a newly-added comment ID for retrieval across HTTP requests.

Parameters

mixed $cid: The comment ID to store for the newly-added comment.

File

src/TempStore.php, line 44

Class

TempStore
A service to help store and retrieve data to be used across HTTP requests.

Namespace

Drupal\ajax_comments

Code

public function setCid($cid) {
  $this->privateTempStore
    ->set('cid', $cid);
}