Symfony\Component\Form\AbstractType::buildView PHP Method

buildView() public method

This method gets called for each type in the hierarchy starting form the top most type. Type extensions can further modify the view.
See also: FormTypeExtensionInterface::buildView()
public buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form )
$view Symfony\Component\Form\FormView The view
$form Symfony\Component\Form\FormInterface The form
    public function buildView(FormView $view, FormInterface $form)
    {
    }

Same methods

AbstractType::buildView ( Symfony\Component\Form\FormView $view, Symfony\Component\Form\FormInterface $form, array $options )

Usage Example

 /**
  * @param FormView      $view
  * @param FormInterface $form
  * @param array         $options
  */
 public function buildView(FormView $view, FormInterface $form, array $options)
 {
     parent::buildView($view, $form, $options);
     if (isset($view->vars['name']) && '' !== $view->vars['name'] && null !== $view->vars['name']) {
         $view->vars['label'] = 'open_orchestra_backoffice.form.content_type.default_listable_label.' . $view->vars['name'];
     }
 }
All Usage Examples Of Symfony\Component\Form\AbstractType::buildView