Sulu\Component\Webspace\Manager\WebspaceCollection::getPortal PHP Method

getPortal() public method

Returns the portal with the given index.
public getPortal ( $key ) : Portal
$key string The index of the portal
return Sulu\Component\Webspace\Portal
    public function getPortal($key)
    {
        return array_key_exists($key, $this->portals) ? $this->portals[$key] : null;
    }