You are here

public function Lock::shutdown in Ultimate Cron 8.2

Shutdown handler for releasing locks.

Overrides LockInterface::shutdown

File

src/Lock/Lock.php, line 28

Class

Lock
Class for handling lock functions.

Namespace

Drupal\ultimate_cron\Lock

Code

public function shutdown() {
  if ($this->locks) {
    foreach (array_keys($this->locks) as $lock_id) {
      $this
        ->unlock($lock_id);
    }
  }
}