Elcodi\Admin\CurrencyBundle\Form\Type\CurrencyType::configureOptions PHP Метод

configureOptions() публичный Метод

Configures the options for this type.
public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver The resolver for the options.
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults(['empty_data' => function () {
            $this->factory->create();
        }, 'data_class' => $this->factory->getEntityNamespace()]);
    }