CoreFiles by mySites.guru
HeadRenderer.php41 lines, 1,157 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
250ca6cb7b65608be9087e2fdfe55015
sha1
513fb36dd3ecd48cc0f3f7f493934e00ade89b5c
sha256
b39ed4d534b3d0c80de1061330a66054aedfe9521c7b149efca78572239b6488
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Document\Renderer\Html;

use Joomla\CMS\Document\DocumentRenderer;

/**
 * HTML document renderer for the document `<head>` element
 *
 * @since  3.5
 */
class HeadRenderer extends DocumentRenderer
{
    /**
     * 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;
    }
}

The same content is in 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.