You are here

public function Condition::removeFailItem in Business Rules 8

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

Remove one fail item from the condition.

Parameters

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

Overrides ConditionInterface::removeFailItem

File

src/Entity/Condition.php, line 143

Class

Condition
Defines the Condition entity.

Namespace

Drupal\business_rules\Entity

Code

public function removeFailItem(BusinessRulesItemObject $item) {
  unset($this->fail_items[$item
    ->getId()]);
}