You are here

public function PathautoPattern::removeSelectionCondition in Pathauto 8

Removes selection criteria by condition id.

Parameters

string $condition_id: The id of the condition.

Return value

$this

Overrides PathautoPatternInterface::removeSelectionCondition

File

src/Entity/PathautoPattern.php, line 321

Class

PathautoPattern
Defines the Pathauto pattern entity.

Namespace

Drupal\pathauto\Entity

Code

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