function Destructable::destruct

Performs destruct operations.

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.