Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Remove horizontal default behavior #133

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/TwbBundle/Form/View/Helper/TwbBundleForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TwbBundleForm extends Form
* @param string $sFormLayout
* @return TwbBundleForm|string
*/
public function __invoke(FormInterface $oForm = null, $sFormLayout = self::LAYOUT_HORIZONTAL)
public function __invoke(FormInterface $oForm = null, $sFormLayout = null)
{
if ($oForm) {
return $this->render($oForm, $sFormLayout);
Expand All @@ -44,7 +44,7 @@ public function __invoke(FormInterface $oForm = null, $sFormLayout = self::LAYOU
* @param string $sFormLayout
* @return string
*/
public function render(FormInterface $oForm, $sFormLayout = self::LAYOUT_HORIZONTAL)
public function render(FormInterface $oForm, $sFormLayout = null)
{
//Prepare form if needed
if (method_exists($oForm, 'prepare')) {
Expand Down
Loading