setDefaultOptions() public method

public setDefaultOptions ( Symfony\Component\OptionsResolver\OptionsResolverInterface $options )
$options Symfony\Component\OptionsResolver\OptionsResolverInterface
示例#1
0
 /**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $options)
 {
     $metadata = $this->metadataFactory->getMetadataForAlias('page');
     $options->setDefaults(['data_class' => $metadata->getClass()]);
     parent::setDefaultOptions($options);
 }
示例#2
0
 /**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $options)
 {
     $options->setDefaults(['data_class' => 'Sulu\\Bundle\\ContentBundle\\Document\\HomeDocument']);
     parent::setDefaultOptions($options);
 }