public function Schedule::getEvent in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::getEvent()
Get the event.
Return value
\Drupal\business_rules\Events\BusinessRulesEvent The event that has created the schedule.
Overrides ScheduleInterface::getEvent
File
- src/
Entity/ Schedule.php, line 223
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function getEvent() {
$value = $this
->get('event')
->getValue();
$event = isset($value[0]) ? $value[0] : FALSE;
return $event;
}