Exemplo n.º 1
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildView(FormView $view, FormInterface $form, array $options)
 {
     /* give options for twig context */
     parent::buildView($view, $form, $options);
     $view->vars['icon'] = $options['icon'];
     $view->vars['multiple'] = $options['multiple'];
 }
Exemplo n.º 2
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildView(FormView $view, FormInterface $form, array $options)
 {
     /* give options for twig context */
     parent::buildView($view, $form, $options);
     $view->vars['icon'] = $options['icon'];
     $view->vars['singularLabel'] = $options['singularLabel'];
     $view->vars['itemBootstrapClass'] = $options['itemBootstrapClass'];
     $view->vars['sortable'] = $options['sortable'];
 }