function Destructable::destruct

Same name and namespace in other branches
  1. 10 core/modules/system/tests/modules/destructable_test/src/Destructable.php \Drupal\destructable_test\Destructable::destruct()

Overrides DestructableInterface::destruct

File

core/modules/system/tests/modules/destructable_test/src/Destructable.php, line 29

Class

Destructable

Namespace

Drupal\destructable_test

Code

public function destruct() {
    sleep(3);
    file_put_contents($this->semaphore, 'ran');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.