public function StateWrapper::delete in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::delete()
- 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::delete()
- 4.x webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::delete()
Deletes the element.
It depends on the specific case and implementation whether this has a permanent effect or if it just affects the current request.
Parameters
string $key: Key that identifies the data.
Overrides CacheCollector::delete
File
- webprofiler/
src/ State/ StateWrapper.php, line 78
Class
- StateWrapper
- Class StateWrapper.
Namespace
Drupal\webprofiler\StateCode
public function delete($key) {
$this->state
->delete($key);
}