Sulu\Bundle\ContentBundle\Form\Type\BasePageDocumentType::setDefaultOptions PHP Method

setDefaultOptions() public method

public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $options )
$options Symfony\Component\OptionsResolver\OptionsResolverInterface
    public function setDefaultOptions(OptionsResolverInterface $options)
    {
        parent::setDefaultOptions($options);
        $options->setRequired(['webspace_key']);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $options)
 {
     $metadata = $this->metadataFactory->getMetadataForAlias('page');
     $options->setDefaults(['data_class' => $metadata->getClass()]);
     parent::setDefaultOptions($options);
 }
All Usage Examples Of Sulu\Bundle\ContentBundle\Form\Type\BasePageDocumentType::setDefaultOptions
BasePageDocumentType