protected function OgChangeMultipleRolesFormBase::getTempStore in Organic groups 8
Returns the temporary storage for the current user.
Return value
\Drupal\Core\TempStore\PrivateTempStore The temporary storage for the current user.
File
- src/
Form/ OgChangeMultipleRolesFormBase.php, line 152
Class
- OgChangeMultipleRolesFormBase
- Base class for forms that act on multiple roles.
Namespace
Drupal\og\FormCode
protected function getTempStore() {
if (empty($this->tempStore)) {
$this->tempStore = $this->tempStoreFactory
->get($this->pluginId);
}
return $this->tempStore;
}