Skip to content

Instantly share code, notes, and snippets.

@Lumbendil
Forked from zerrvox/CreateScheduleTemplateType.php
Last active December 30, 2015 03:59
Show Gist options
  • Select an option

  • Save Lumbendil/7772690 to your computer and use it in GitHub Desktop.

Select an option

Save Lumbendil/7772690 to your computer and use it in GitHub Desktop.
<?php
class CreateScheduleTemplateType extends AbstractType
{
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(
array(
'required' => true,
'type' => 'Melin\ModulePlannerBundle\Form\Type\ScheduleTemplate',
'csrf_protection' => false
)
);
}
public function getName()
{
return '';
}
public function getParent()
{
return 'collection';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment