Elcodi\Admin\CurrencyBundle\Form\Type\CurrencyType::configureOptions PHP Method

configureOptions() public method

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()]);
    }