Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Key.php

function Key::getRemainingLifetime

Returns the remaining lifetime in seconds.

File

vendor/symfony/lock/Key.php, line 82

Class

Key
Key is a container for the state of the locks in stores.

Namespace

Symfony\Component\Lock

Code

public function getRemainingLifetime() : ?float {
    return null === $this->expiringTime ? null : $this->expiringTime - microtime(true);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal