public function PageVariant::getSelectionConditions in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::getSelectionConditions()
Gets the selection condition collection.
Return value
\Drupal\Core\Condition\ConditionInterface[]|\Drupal\Core\Condition\ConditionPluginCollection
Overrides PageVariantInterface::getSelectionConditions
2 calls to PageVariant::getSelectionConditions()
- PageVariant::calculateDependencies in src/
Entity/ PageVariant.php - Calculates dependencies and stores them in the dependency property.
- PageVariant::getPluginCollections in src/
Entity/ PageVariant.php - Gets the plugin collections used by this object.
File
- src/
Entity/ PageVariant.php, line 331 - Contains Drupal\page_manager\Entity\PageVariant.
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
public function getSelectionConditions() {
if (!$this->selectionConditionCollection) {
$this->selectionConditionCollection = new ConditionPluginCollection($this
->getConditionManager(), $this
->getSelectionConfiguration());
}
return $this->selectionConditionCollection;
}