Back to HeadRenderer class

Method render

public string
render
(mixed $head, mixed $params = array(), mixed $content = null)
Renders the document head and returns the results as a string
Parameters
  • string $head (unused)
  • array $params Associative array of values
  • string $content The script
Returns
  • string The output of the script
Since
  • 3.5
Class: HeadRenderer
Project: Joomla

Method render - Source code

/**
 * Renders the document head and returns the results as a string
 *
 * @param   string  $head     (unused)
 * @param   array   $params   Associative array of values
 * @param   string  $content  The script
 *
 * @return  string  The output of the script
 *
 * @since   3.5
 */
public function render($head, $params = array(), $content = null)
{
    $buffer = '';
    $buffer .= $this->_doc->loadRenderer('metas')->render($head, $params, $content);
    $buffer .= $this->_doc->loadRenderer('styles')->render($head, $params, $content);
    $buffer .= $this->_doc->loadRenderer('scripts')->render($head, $params, $content);
    return $buffer;
}