Back to FormField class

Method render

public string
render
(mixed $layoutId, mixed $data = array())
Render a layout of this field
Parameters
  • string $layoutId Layout identifier
  • array $data Optional data for the layout
Returns
  • string
Since
  • 3.5
Class: FormField
Project: Joomla

Method render - Source code

/**
 * Render a layout of this field
 *
 * @param   string  $layoutId  Layout identifier
 * @param   array   $data      Optional data for the layout
 *
 * @return  string
 *
 * @since   3.5
 */
public function render($layoutId, $data = array())
{
    $data = array_merge($this->getLayoutData(), $data);
    return $this->getRenderer($layoutId)->render($data);
}