You are here

public function StateWrapper::delete in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::delete()
  2. 8.2 webprofiler/src/State/StateWrapper.php \Drupal\webprofiler\State\StateWrapper::delete()
  3. 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\State

Code

public function delete($key) {
  $this->state
    ->delete($key);
}