public function PageVariant::removeSelectionCondition in Page Manager 8
Same name and namespace in other branches
- 8.4 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 357 - Contains Drupal\page_manager\Entity\PageVariant.
Class
- PageVariant
- Defines the page variant entity.
Namespace
Drupal\page_manager\EntityCode
public function removeSelectionCondition($condition_id) {
$this
->getSelectionConditions()
->removeInstanceId($condition_id);
return $this;
}