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;
    }