You are here

public function PageVariant::removeSelectionCondition in Page Manager 8.4

Same name and namespace in other branches
  1. 8 src/Entity/PageVariant.php \Drupal\page_manager\Entity\PageVariant::removeSelectionCondition()

Removes selection criteria by condition id.

Parameters

string $condition_id: The ID of the condition.

Return value

$this

Overrides PageVariantInterface::removeSelectionCondition

File

src/Entity/PageVariant.php, line 352

Class

PageVariant
Defines the page variant entity.

Namespace

Drupal\page_manager\Entity

Code

public function removeSelectionCondition($condition_id) {
  $this
    ->getSelectionConditions()
    ->removeInstanceId($condition_id);
  return $this;
}