Elcodi\Admin\GeoBundle\Form\LocationSelectorBuilder::formatSelector PHP Метод

formatSelector() приватный Метод

Returns a well formatted selector
private formatSelector ( string $type, array $options, string | null $selected = null ) : array
$type string The selector type
$options array The selector options
$selected string | null The selected option
Результат array
    private function formatSelector($type, array $options, $selected = null)
    {
        return ['type' => $type, 'options' => $options, 'selected' => $selected];
    }