src/Sulu/Component/Webspace/Manager/WebspaceCollection.php
public function getPortal($key)
    {
        return array_key_exists($key, $this->portals) ? $this->portals[$key] : null;
    }
public function getPortal($key)
    {
        return array_key_exists($key, $this->portals) ? $this->portals[$key] : null;
    }
public function getPortal ( $ key ) { return array_key_exists ( $ key , $ this -> portals ) ? $ this -> portals [ $ key ] : null ; }
Returns the portal with the given index.

@param $key string The index of the portal

@return Portal
Returns the portal with the given index .