src/Http/Controller/Admin/VariablesController.php
public function edit(StreamRepositoryInterface $streams, VariableFormBuilder $form, $id)
    {
        /* @var StreamInterface $group */
        $group = $streams->find($id);

        $entry = $group->getEntryModel()->firstOrNew([]);

        return $form->setModel($group->getEntryModelName())->render($entry);
    }
public function edit(StreamRepositoryInterface $streams, VariableFormBuilder $form, $id)
    {
        /* @var StreamInterface $group */
        $group = $streams->find($id);

        $entry = $group->getEntryModel()->firstOrNew([]);

        return $form->setModel($group->getEntryModelName())->render($entry);
    }
public function edit ( StreamRepositoryInterface $ streams , VariableFormBuilder $ form , $ id ) { /* @var StreamInterface $group */ $ group = $ streams -> find ( $ id ) ; $ entry = $ group -> getEntryModel ( ) -> firstOrNew ( [ ] ) ; return $ form -> setModel ( $ group -> getEntryModelName ( ) ) -> render ( $ entry ) ; }
Return a form to edit the variables.

@param  StreamRepositoryInterface                  $streams
@param  VariableFormBuilder                        $form
@param                                             $id
@return \Symfony\Component\HttpFoundation\Response
Return a form to edit the variables .