You are here

public function License::getExpiresTime in Commerce License 8.2

Gets the License expiration timestamp.

Return value

int Expiration timestamp of the License.

Overrides LicenseInterface::getExpiresTime

1 call to License::getExpiresTime()
License::preSave in src/Entity/License.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/License.php, line 178

Class

License
Defines the License entity.

Namespace

Drupal\commerce_license\Entity

Code

public function getExpiresTime() {
  return $this
    ->get('expires')->value;
}