public function Schedule::setTriggeredBy in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/Schedule.php \Drupal\business_rules\Entity\Schedule::setTriggeredBy()
Set the Business Rule which has triggered this schedule.
Parameters
\Drupal\business_rules\Entity\BusinessRulesItemBase $businessRuleItem: The Business Rule item.
Return value
\Drupal\business_rules\Entity\ScheduleInterface The called Schedule entity.
Overrides ScheduleInterface::setTriggeredBy
File
- src/
Entity/ Schedule.php, line 134
Class
- Schedule
- Defines the Schedule entity.
Namespace
Drupal\business_rules\EntityCode
public function setTriggeredBy(BusinessRulesItemBase $businessRuleItem) {
$this
->set('triggered_by', $businessRuleItem
->id());
return $this;
}