예제 #1
0
 /**
  * Renders a block of the template.
  *
  * @param FormView $view      The view for determining the used themes.
  * @param string   $blockName The name of the block to render.
  * @param array    $variables The variable to pass to the template.
  *
  * @return string The HTML markup
  */
 public function block(FormView $view, $blockName, array $variables = array())
 {
     return $this->renderer->renderBlock($view, $blockName, $variables);
 }
예제 #2
0
 /**
  * Renders the closing form tag of the form.
  *
  * @param FormView $view
  * @param array $variables
  * @return string
  */
 public function end(FormView $view, array $variables = [])
 {
     return $this->renderer->renderBlock($view, 'form_end', $variables);
 }