public setDefaultScope ( string $scope ) | ||
$scope | string |
public function setDefaultScope($scope);
public function onConfigScopeChange(ScopeChangeEvent $event) { $siteAccess = $event->getSiteAccess(); $this->configResolver->setDefaultScope($siteAccess->name); if ($this->viewManager instanceof SiteAccessAware) { $this->viewManager->setSiteAccess($siteAccess); } }