public function buildView(FormView $view, FormInterface $form, array $options) { parent::buildView($view, $form, $options); $view->vars = array_replace($view->vars, array('tab_type' => $this->getName(), 'label' => false)); }
public function setDefaultOptions(OptionsResolverInterface $resolver) { parent::setDefaultOptions($resolver); $resolver->setDefaults(array('data_class' => 'NGS\\UUID', 'compound' => false)); }
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); // custom path mapper $builder->setDataMapper($options['compound'] ? new ResourcePropertyPathMapper() : null); }