src/Sulu/Component/Webspace/Portal.php
public function addLocalization(Localization $localization)
    {
        $this->localizations[] = $localization;

        if ($localization->isDefault()) {
            $this->setDefaultLocalization($localization);
        }

        if ($localization->isXDefault()) {
            $this->setXDefaultLocalization($localization);
        }
    }
public function addLocalization(Localization $localization)
    {
        $this->localizations[] = $localization;

        if ($localization->isDefault()) {
            $this->setDefaultLocalization($localization);
        }

        if ($localization->isXDefault()) {
            $this->setXDefaultLocalization($localization);
        }
    }
public function addLocalization ( Localization $ localization ) { $ this -> localizations [ ] = $ localization ; if ( $ localization -> isDefault ( ) ) { $ this -> setDefaultLocalization ( $ localization ) ; } if ( $ localization -> isXDefault ( ) ) { $ this -> setXDefaultLocalization ( $ localization ) ; } }
Adds the given language to the portal.

@param Localization $localization
Adds the given language to the portal .