public function BlockVisibilityGroup::getConditions in Block Visibility Groups 8
Returns the conditions.
Return value
\Drupal\Core\Condition\ConditionInterface[]|\Drupal\Core\Condition\ConditionPluginCollection An array of configured condition plugins.
1 call to BlockVisibilityGroup::getConditions()
- BlockVisibilityGroup::getPluginCollections in src/
Entity/ BlockVisibilityGroup.php - Gets the plugin collections used by this object.
File
- src/
Entity/ BlockVisibilityGroup.php, line 151
Class
- BlockVisibilityGroup
- Defines the Block Visibility Group entity.
Namespace
Drupal\block_visibility_groups\EntityCode
public function getConditions() {
if (!$this->conditionCollection) {
$this->conditionCollection = new ConditionPluginCollection(\Drupal::service('plugin.manager.condition'), $this
->get('conditions'));
}
return $this->conditionCollection;
}