/**
  * Builds the form.
  *
  * This method is called for each type in the hierarchy starting form the
  * top most type. Type extensions can further modify the form.
  *
  * @param FormBuilderInterface $builder The form builder
  * @param array                $options The options
  *
  * @see FormTypeExtensionInterface::buildForm()
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('type', ChoiceType::class, array('choices' => array('soundcloud' => 'soundcloud'), 'constraints' => array(new NotBlank()), 'required' => true));
 }
 /**
  * Builds the form.
  *
  * This method is called for each type in the hierarchy starting form the
  * top most type. Type extensions can further modify the form.
  *
  * @param FormBuilderInterface $builder The form builder
  * @param array                $options The options
  *
  * @see FormTypeExtensionInterface::buildForm()
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('type', ChoiceType::class, array('choices' => $this->getRemoteVideoChoices(), 'constraints' => array(new NotBlank()), 'required' => true));
 }
 /**
  * Builds the form.
  *
  * This method is called for each type in the hierarchy starting form the
  * top most type. Type extensions can further modify the form.
  *
  * @param FormBuilderInterface $builder The form builder
  * @param array                $options The options
  *
  * @see FormTypeExtensionInterface::buildForm()
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('type', ChoiceType::class, array('label' => 'media.form.remote_audio.type.label', 'choices' => array('soundcloud' => 'soundcloud'), 'constraints' => array(new NotBlank()), 'required' => true, 'choices_as_values' => true));
 }
 /**
  * Builds the form.
  *
  * This method is called for each type in the hierarchy starting form the
  * top most type. Type extensions can further modify the form.
  *
  * @param FormBuilderInterface $builder The form builder
  * @param array                $options The options
  *
  * @see FormTypeExtensionInterface::buildForm()
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('type', 'choice', array('choices' => array('slideshare' => 'slideshare'), 'constraints' => array(new NotBlank()), 'required' => true));
 }
 /**
  * Builds the form.
  *
  * This method is called for each type in the hierarchy starting form the
  * top most type. Type extensions can further modify the form.
  *
  * @param FormBuilderInterface $builder The form builder
  * @param array                $options The options
  *
  * @see FormTypeExtensionInterface::buildForm()
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('type', ChoiceType::class, array('label' => 'media.form.remote_video.type.label', 'choices' => $this->getRemoteVideoChoices($options['configuration']), 'constraints' => array(new NotBlank()), 'required' => true, 'choices_as_values' => true));
 }