public function ViewmodepagePattern::getSelectionCondition in View Mode Page 8.3
Same name and namespace in other branches
- 4.0.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::getSelectionCondition()
- 3.2.x src/Entity/ViewmodepagePattern.php \Drupal\view_mode_page\Entity\ViewmodepagePattern::getSelectionCondition()
Gets selection criteria by condition id.
Parameters
string $condition_id: The id of the condition.
Return value
\Drupal\Core\Condition\ConditionInterface Returns the condition interface
Overrides ViewmodepagePatternInterface::getSelectionCondition
File
- src/
Entity/ ViewmodepagePattern.php, line 301
Class
- ViewmodepagePattern
- Defines the Viewmodepage pattern entity.
Namespace
Drupal\view_mode_page\EntityCode
public function getSelectionCondition($condition_id) {
return $this
->getSelectionConditions()
->get($condition_id);
}