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

buildViewBottomUp() 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. Children views have been built while this method gets called so you get a chance to modify them.
See also: FormTypeExtensionInterface::buildViewBottomUp()
public buildViewBottomUp ( 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 buildViewBottomUp(FormView $view, FormInterface $form)
    {
    }

Usage Example

 public function buildViewBottomUp(FormView $view, FormInterface $form)
 {
     parent::buildViewBottomUp($view, $form);
     $params = $form->getAttribute('url_params');
     $view->set('url', $this->router->generate($form->getAttribute('url'), $params));
     $view->set('callback', $form->getAttribute('callback'));
     $view->set('select_callback', $form->getAttribute('select_callback'));
 }