/** * {@inheritDoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $transformer = new AngularAttributeTransformer(); $attr = $transformer->transform($options); $builder->add('value', 'integer', ['required' => $options['attribute']->getRequired() ? true : false, 'label' => false, 'attr' => $attr]); }
/** * {@inheritDoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $transformer = new AngularAttributeTransformer(); $attr = $transformer->transform($options); $builder->add('value', 'ruleeditor', ['label' => false, 'provider' => 'content', 'attr' => $attr]); }