public function Context::getConditions in Context 8.0
Same name and namespace in other branches
- 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::getConditions()
- 8 src/Entity/Context.php \Drupal\context\Entity\Context::getConditions()
Get a list of all conditions.
Return value
ConditionInterface[]|ConditionPluginCollection
Overrides ContextInterface::getConditions
1 call to Context::getConditions()
- Context::getPluginCollections in src/
Entity/ Context.php - Gets the plugin collections used by this entity.
File
- src/
Entity/ Context.php, line 251
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function getConditions() {
if (!$this->conditionsCollection) {
$conditionManager = Drupal::service('plugin.manager.condition');
$this->conditionsCollection = new ConditionPluginCollection($conditionManager, $this->conditions);
}
return $this->conditionsCollection;
}