public function Subscription::getLease in Feeds 8.3
Returns the number of seconds of the lease.
The hub-determined number of seconds that the subscription will stay active before expiring, measured from the time the verification request was made from the hub to the subscriber.
Return value
int The time, in seconds of the lease.
Overrides SubscriptionInterface::getLease
File
- src/
Entity/ Subscription.php, line 94
Class
- Subscription
- Defines the subscription entity class.
Namespace
Drupal\feeds\EntityCode
public function getLease() {
return (int) $this
->get('lease')->value;
}