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