Last active
December 11, 2015 21:08
-
-
Save lmcd/4659862 to your computer and use it in GitHub Desktop.
This file contains 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
$options = array(); | |
if ($data->getBlah()) { | |
$options = array( | |
'disabled' => true | |
); | |
} | |
else { | |
$options = array( | |
'required' => false | |
); | |
} | |
$type = $this->factory->createNamed('bank_account', new BankAccountType(), $options); | |
$form->add($type); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment