/** * Get all the root locations. * * @return LocationData[] Collection of locations */ public function getRootLocations() { $roots = $this->locationRepository->findAllRoots(); return $this->formatOutputLocationArray($roots); }