You are here

public function BusinessRule::removeItem in Business Rules 8

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

Remove one item from the Business rule's items.

Parameters

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

Overrides BusinessRuleInterface::removeItem

File

src/Entity/BusinessRule.php, line 339

Class

BusinessRule
Defines the Rule entity.

Namespace

Drupal\business_rules\Entity

Code

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