public function Condition::addFailItem in Business Rules 8
Same name and namespace in other branches
- 2.x src/Entity/Condition.php \Drupal\business_rules\Entity\Condition::addFailItem()
Add one item for Condition fail.
Parameters
\Drupal\business_rules\BusinessRulesItemObject $item: The item to be added.
Overrides ConditionInterface::addFailItem
File
- src/
Entity/ Condition.php, line 209
Class
- Condition
- Defines the Condition entity.
Namespace
Drupal\business_rules\EntityCode
public function addFailItem(BusinessRulesItemObject $item) {
$item_array = $item
->toArray();
$this->fail_items[$item
->getId()] = $item_array[$item
->getId()];
}