public function Schedule::getTriggeredBy in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::getTriggeredBy()
Get the Business Rule which has triggered this schedule.
Return value
\Drupal\business_rules\Entity\BusinessRule|null The Business Rule or null.
Overrides ScheduleInterface::getTriggeredBy
File
- src/
Entity/ Schedule.php, line 124
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function getTriggeredBy() {
$action = $this
->get('triggered_by');
$entity = $action->entity;
return $entity;
}