function Lock::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/TempStore/Lock.php \Drupal\Core\TempStore\Lock::__construct()
- 8.9.x core/lib/Drupal/Core/TempStore/Lock.php \Drupal\Core\TempStore\Lock::__construct()
- 11.x core/lib/Drupal/Core/TempStore/Lock.php \Drupal\Core\TempStore\Lock::__construct()
Constructs a new Lock object.
Parameters
int $owner_id: The owner ID.
int $updated: The updated timestamp.
File
-
core/
lib/ Drupal/ Core/ TempStore/ Lock.php, line 32
Class
- Lock
- Provides a value object representing the lock from a TempStore.
Namespace
Drupal\Core\TempStoreCode
public function __construct($owner_id, $updated) {
$this->ownerId = $owner_id;
$this->updated = $updated;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.