8000 [Form][Twig] Removed obsolete form_data() helper · ivanrey/symfony@2ddc85a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ddc85a

Browse files
committed
[Form][Twig] Removed obsolete form_data() helper
1 parent 44af72b commit 2ddc85a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public function getFunctions()
7373
'form_widget' => new \Twig_Function_Method($this, 'renderWidget', array('is_safe' => array('html'))),
7474
'form_errors' => new \Twig_Function_Method($this, 'renderErrors', array('is_safe' => array('html'))),
7575
'form_label' => new \Twig_Function_Method($this, 'renderLabel', array('is_safe' => array('html'))),
76-
'form_data' => new \Twig_Function_Method($this, 'renderData', array('is_safe' => array('html'))),
7776
'form_row' => new \Twig_Function_Method($this, 'renderRow', array('is_safe' => array('html'))),
7877
'form_rest' => new \Twig_Function_Method($this, 'renderRest', array('is_safe' => array('html'))),
7978
);
@@ -158,16 +157,6 @@ public function renderLabel(FormView $view, $label = null)
158157
return $this->render($view, 'label', null === $label ? array() : array('label' => $label));
159158
}
160159

161-
/**
162-
* Renders the widget data of the given view
163-
*
164-
* @param FormView $view The view to render the data for
165-
*/
166-
public function renderData(FormView $view)
167-
{
168-
return $form->getData();
169-
}
170-
171160
protected function render(FormView $view, $section, array $variables = array(), array $resources = null)
172161
{
173162
$templates = $this->getTemplates($view, $resources);

0 commit comments

Comments
 (0)
0