setDefaultOptions() 공개 메소드

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);
 }