You are here

public function RuleSchedule::getDate in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::getDate()
  2. 3.x src/Entity/RuleSchedule.php \Drupal\rng\Entity\RuleSchedule::getDate()

Execution date as a unix timestamp.

Return value

int A timestamp.

Overrides RuleScheduleInterface::getDate

File

src/Entity/RuleSchedule.php, line 38

Class

RuleSchedule
Defines the rule scheduler entity.

Namespace

Drupal\rng\Entity

Code

public function getDate() {
  return $this
    ->get('trigger_date')->value;
}