public function TempStore::__construct in AJAX Comments 8
TempStore constructor.
Parameters
\Drupal\Core\TempStore\PrivateTempStoreFactory $private_temp_store_factory: The factory to create the PrivateTempStore object.
File
- src/
TempStore.php, line 34
Class
- TempStore
- A service to help store and retrieve data to be used across HTTP requests.
Namespace
Drupal\ajax_commentsCode
public function __construct(PrivateTempStoreFactory $private_temp_store_factory) {
$this->privateTempStore = $private_temp_store_factory
->get('ajax_comments');
}