You are here

public function PageVariant::getSelectionCondition in Page Manager 8.4

Same name and namespace in other branches
  1. 8 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 345

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function getSelectionCondition($condition_id) {
  return $this
    ->getSelectionConditions()
    ->get($condition_id);
}