You are here

public function EventTypeRule::removeCondition in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::removeCondition()
  2. 8 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::removeCondition()

Remove a condition configuration.

Parameters

$name: A condition plugin instance ID.

Return value

$this The event type rule.

Overrides EventTypeRuleInterface::removeCondition

File

src/Entity/EventTypeRule.php, line 143

Class

EventTypeRule
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function removeCondition($name) {
  unset($this->conditions[$name]);
  return $this;
}