You are here

public function EventTypeRule::setCondition 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::setCondition()
  2. 8 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::setCondition()

Set a condition configuration.

Parameters

$name: A condition plugin instance ID.

$configuration: The condition plugin configuration

Return value

$this The event type rule.

Overrides EventTypeRuleInterface::setCondition

File

src/Entity/EventTypeRule.php, line 127

Class

EventTypeRule
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function setCondition($name, $configuration) {
  $this->conditions[$name] = $configuration;
  return $this;
}