You are here

public function Condition::addSuccessItem in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Entity/Condition.php \Drupal\business_rules\Entity\Condition::addSuccessItem()

Add one item for Condition success.

Parameters

\Drupal\business_rules\BusinessRulesItemObject $item: The item to be added.

Overrides ConditionInterface::addSuccessItem

File

src/Entity/Condition.php, line 201

Class

Condition
Defines the Condition entity.

Namespace

Drupal\business_rules\Entity

Code

public function addSuccessItem(BusinessRulesItemObject $item) {
  $item_array = $item
    ->toArray();
  $this->success_items[$item
    ->getId()] = $item_array[$item
    ->getId()];
}