Elcodi\Store\GeoBundle\Form\LocationSelectorBuilder::generateOptions PHP Метод

generateOptions() защищенный Метод

Generates all the options for a select given the raw options from the areas info from the API.
protected generateOptions ( array $rawOptions ) : array
$rawOptions array The raw options
Результат array
    protected function generateOptions(array $rawOptions)
    {
        $options = [];
        foreach ($rawOptions as $rawOption) {
            $options[$rawOption->getId()] = $rawOption->getName();
        }
        return $options;
    }