public function License::getGrantedTime in Commerce License 8.2
Gets the granted timestamp.
Return value
int The granted timestamp.
Overrides LicenseInterface::getGrantedTime
1 call to License::getGrantedTime()
- License::preSave in src/
Entity/ License.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ License.php, line 193
Class
- License
- Defines the License entity.
Namespace
Drupal\commerce_license\EntityCode
public function getGrantedTime() {
return $this
->get('granted')->value;
}