You are here

public function EventTypeRule::getCondition in RNG - Events and Registrations 8

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

Get a condition configuration.

Parameters

$name: A condition plugin instance ID.

Return value

array

Overrides EventTypeRuleInterface::getCondition

File

src/Entity/EventTypeRule.php, line 114

Class

EventTypeRule
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function getCondition($name) {
  return isset($this->conditions[$name]) ? $this->conditions[$name] : NULL;
}