protected function getSelectLocationList() { $rawList = $this->leisureRepository->findAllLocations(true); $selectList = array(); if (count($rawList) > 0) { foreach ($rawList as $location) { $selectList[] = array('name' => $location['location']); } } return $selectList; }