Inheritance: extends AbstractStructureBehaviorType
Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $options)
 {
     $metadata = $this->metadataFactory->getMetadataForAlias('page');
     $options->setDefaults(['data_class' => $metadata->getClass()]);
     parent::setDefaultOptions($options);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function setDefaultOptions(OptionsResolverInterface $options)
 {
     $options->setDefaults(['data_class' => 'Sulu\\Bundle\\ContentBundle\\Document\\HomeDocument']);
     parent::setDefaultOptions($options);
 }