public function ThemeSwitcherRule::getVisibilityConditions in Theme Switcher Rules 8
1 call to ThemeSwitcherRule::getVisibilityConditions()
- ThemeSwitcherRule::getPluginCollections in src/
Entity/ ThemeSwitcherRule.php - Gets the plugin collections used by this object.
File
- src/
Entity/ ThemeSwitcherRule.php, line 156
Class
- ThemeSwitcherRule
- Defines the Theme Switcher Rule entity.
Namespace
Drupal\theme_switcher\EntityCode
public function getVisibilityConditions() {
if (!isset($this->visibilityCollection)) {
$this->visibilityCollection = new ConditionPluginCollection($this
->conditionPluginManager(), $this
->get('visibility'));
}
return $this->visibilityCollection;
}