Eccube\Form\Type\TelType::configureOptions PHP Method

configureOptions() public method

public configureOptions ( Symfony\Component\OptionsResolver\OptionsResolver $resolver )
$resolver Symfony\Component\OptionsResolver\OptionsResolver
    public function configureOptions(OptionsResolver $resolver)
    {
        $resolver->setDefaults(array('options' => array('constraints' => array()), 'tel01_options' => array('constraints' => array(new Assert\Type(array('type' => 'numeric', 'message' => 'form.type.numeric.invalid')), new Assert\Length(array('max' => $this->config['tel_len'], 'min' => $this->config['tel_len_min'])))), 'tel02_options' => array('constraints' => array(new Assert\Type(array('type' => 'numeric', 'message' => 'form.type.numeric.invalid')), new Assert\Length(array('max' => $this->config['tel_len'], 'min' => $this->config['tel_len_min'])))), 'tel03_options' => array('constraints' => array(new Assert\Type(array('type' => 'numeric', 'message' => 'form.type.numeric.invalid')), new Assert\Length(array('max' => $this->config['tel_len'], 'min' => $this->config['tel_len_min'])))), 'tel01_name' => '', 'tel02_name' => '', 'tel03_name' => '', 'error_bubbling' => false, 'inherit_data' => true, 'trim' => true));
    }