/** * @return array */ public function getChoices() { $sites = $this->sitePool->getSites(); $choices = array(); foreach ($sites as $site) { $choices[$site->getId()] = $site->getName(); } return $choices; }
/** * @return array */ public function getSites() { return $this->sitePool->getSites(); }