Sulu\Component\Webspace\Portal::setEnvironments PHP Method

setEnvironments() public method

Sets the environments for this portal.
public setEnvironments ( array $environments )
$environments array
    public function setEnvironments(array $environments)
    {
        $this->environments = [];
        foreach ($environments as $environment) {
            $this->addEnvironment($environment);
        }
    }