public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $file = null;
     if ($this->entity !== null) {
         $file = new File($this->entity->getPath());
     }
     $builder->add('file', 'file', ['multiple' => false, 'mapped' => false, 'attr' => ['help' => $this->__('Image to be used as watermark.')], 'data' => $file, 'required' => $this->entity === null, 'constraints' => [new Assert\File(['mimeTypes' => ['image/png', 'image/jpeg', 'image/gif']])]]);
     parent::buildForm($builder, $options);
 }
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('text', 'text', ['attr' => ['help' => $this->__('Text to be used as watermark.')]])->add('absoluteSize', 'number', ['scale' => 0, 'label' => $this->__('Font size'), 'required' => false, 'attr' => ['help' => $this->__('The font size to use, reagardless of the image size. Either this or the "Relative size" option must be set.')]])->add('font', 'cmfcmfmediamodule_font_choice', ['label' => $this->__('Font')]);
     parent::buildForm($builder, $options);
 }