public function TempStore::getCid in AJAX Comments 8
Retrieve a newly-added comment ID set in a previous request by setCid().
Return value
mixed The comment ID saved in ::setCid().
File
- src/
TempStore.php, line 54
Class
- TempStore
- A service to help store and retrieve data to be used across HTTP requests.
Namespace
Drupal\ajax_commentsCode
public function getCid() {
return $this->privateTempStore
->get('cid');
}