public function BusinessRule::removeItem in Business Rules 2.x
Same name and namespace in other branches
- 8 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 362
Class
- BusinessRule
- Defines the Rule entity.
Namespace
Drupal\business_rules\EntityCode
public function removeItem(BusinessRulesItemObject $item) {
unset($this->items[$item
->getId()]);
}