Created
June 16, 2014 11:32
-
-
Save alxfv/6a6ddc54abc768e00253 to your computer and use it in GitHub Desktop.
setDefaultOptions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* {@inheritdoc} | |
*/ | |
public function setDefaultOptions(OptionsResolverInterface $resolver) | |
{ | |
$resolver->setDefaults(array( | |
'type' => 'new', | |
)); | |
$resolver->setAllowedValues(array( | |
'type' => array( | |
'new', | |
'edit', | |
), | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment