private function getNonDefaultSiteaccessName()
    {
        $defaultSiteaccessName = $this->getDefaultSiteaccessName();
        foreach ($this->getKernel()->getContainer()->getParameter('ezpublish.siteaccess.list') as $siteaccessName) {
            if ($siteaccessName !== $defaultSiteaccessName) {
                return $siteaccessName;
            }
        }

        return null;
    }
private function getNonDefaultSiteaccessName()
    {
        $defaultSiteaccessName = $this->getDefaultSiteaccessName();
        foreach ($this->getKernel()->getContainer()->getParameter('ezpublish.siteaccess.list') as $siteaccessName) {
            if ($siteaccessName !== $defaultSiteaccessName) {
                return $siteaccessName;
            }
        }

        return null;
    }
private function getNonDefaultSiteaccessName ( ) { $ defaultSiteaccessName = $ this -> getDefaultSiteaccessName ( ) ; foreach ( $ this -> getKernel ( ) -> getContainer ( ) -> getParameter ( 'ezpublish.siteaccess.list' ) as $ siteaccessName ) { if ( $ siteaccessName !== $ defaultSiteaccessName ) { return $ siteaccessName ; } } return null ; }
Returns the name of an existing siteaccess that isn't the default one.
@return string|null The siteaccess name, or null if there isn't one
Returns the name of an existing siteaccess that isn t the default one .