public function ViewmodepagePattern::removeSelectionCondition in View Mode Page 3.2.x
Same name and namespace in other branches
- 8.3 src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::removeSelectionCondition()
- 4.0.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\EntityCode
public function removeSelectionCondition($condition_id) {
$this
->getSelectionConditions()
->removeInstanceId($condition_id);
return $this;
}