public function PageVariant::getSelectionConditions in Page Manager 8.4
Same name and namespace in other branches
- 8 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 326
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;
}