public function Promotion::getCreatedTime in Commerce Core 8.2
Gets the promotion creation timestamp.
Return value
int Creation timestamp of the promotion.
Overrides PromotionInterface::getCreatedTime
File
- modules/
promotion/ src/ Entity/ Promotion.php, line 168
Class
- Promotion
- Defines the promotion entity class.
Namespace
Drupal\commerce_promotion\EntityCode
public function getCreatedTime() {
return $this
->get('created')->value;
}