public function EventTypeRule::setCondition in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Entity/EventTypeRule.php \Drupal\rng\Entity\EventTypeRule::setCondition()
- 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\EntityCode
public function setCondition($name, $configuration) {
$this->conditions[$name] = $configuration;
return $this;
}