public function PageVariant::getSelectionCondition in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::getSelectionCondition()
Gets selection criteria by condition id.
Parameters
string $condition_id: The ID of the condition.
Return value
\Drupal\Core\Condition\ConditionInterface
Overrides PageVariantInterface::getSelectionCondition
File
- src/
Entity/ PageVariant.php, line 350 - Contains Drupal\page_manager\Entity\PageVariant.
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
public function getSelectionCondition($condition_id) {
return $this
->getSelectionConditions()
->get($condition_id);
}