src/Sulu/Component/Webspace/Loader/XmlFileLoader10.php
protected function validateDefaultPortalLocalization()
    {
        // check all portal localizations
        foreach ($this->webspace->getPortals() as $portal) {
            try {
                if (!$this->validateDefaultLocalization($portal->getLocalizations())) {
                    // try to load the webspace localizations before throwing an exception
                    if (!$this->loadPortalLocalizationDefaultFromWebspace($portal)) {
                        throw new PortalDefaultLocalizationNotFoundException($this->webspace, $portal);
                    }
                }
            } catch (InvalidDefaultLocalizationException $ex) {
                throw new InvalidPortalDefaultLocalizationException($this->webspace, $portal);
            }
        }
    }
protected function validateDefaultPortalLocalization()
    {
        // check all portal localizations
        foreach ($this->webspace->getPortals() as $portal) {
            try {
                if (!$this->validateDefaultLocalization($portal->getLocalizations())) {
                    // try to load the webspace localizations before throwing an exception
                    if (!$this->loadPortalLocalizationDefaultFromWebspace($portal)) {
                        throw new PortalDefaultLocalizationNotFoundException($this->webspace, $portal);
                    }
                }
            } catch (InvalidDefaultLocalizationException $ex) {
                throw new InvalidPortalDefaultLocalizationException($this->webspace, $portal);
            }
        }
    }
protected function validateDefaultPortalLocalization ( ) { // check all portal localizations foreach ( $ this -> webspace -> getPortals ( ) as $ portal ) { try { if ( ! $ this -> validateDefaultLocalization ( $ portal -> getLocalizations ( ) ) ) { // try to load the webspace localizations before throwing an exception if ( ! $ this -> loadPortalLocalizationDefaultFromWebspace ( $ portal ) ) { throw new PortalDefaultLocalizationNotFoundException ( $ this -> webspace , $ portal ) ; } } } catch ( InvalidDefaultLocalizationException $ ex ) { throw new InvalidPortalDefaultLocalizationException ( $ this -> webspace , $ portal ) ; } } }
Validate portal localization.

@throws Exception\PortalDefaultLocalizationNotFoundException
@throws Exception\InvalidPortalDefaultLocalizationException
Validate portal localization .