You are here

public function ViewmodepagePattern::removeSelectionCondition in View Mode Page 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::removeSelectionCondition()
  2. 3.2.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::removeSelectionCondition()

Removes selection criteria by condition id.

Parameters

string $condition_id: The id of the condition.

Return value

$this Returns the current object

Overrides ViewmodepagePatternInterface::removeSelectionCondition

File

src/Entity/ViewmodepagePattern.php, line 308

Class

ViewmodepagePattern
Defines the Viewmodepage pattern entity.

Namespace

Drupal\view_mode_page\Entity

Code

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