eZ\Publish\Core\MVC\Symfony\Configuration\VersatileScopeInterface::setDefaultScope PHP Method

setDefaultScope() public method

Sets a new default scope.
public setDefaultScope ( string $scope )
$scope string
    public function setDefaultScope($scope);

Usage Example

 public function onConfigScopeChange(ScopeChangeEvent $event)
 {
     $siteAccess = $event->getSiteAccess();
     $this->configResolver->setDefaultScope($siteAccess->name);
     if ($this->viewManager instanceof SiteAccessAware) {
         $this->viewManager->setSiteAccess($siteAccess);
     }
 }
All Usage Examples Of eZ\Publish\Core\MVC\Symfony\Configuration\VersatileScopeInterface::setDefaultScope
VersatileScopeInterface