PHPFusion\OutputHandler::addToHead PHP Method

addToHead() public static method

Add content to the html head
public static addToHead ( string $tag = "" )
$tag string
    public static function addToHead($tag = "")
    {
        if (!\stristr(self::$pageHeadTags, $tag)) {
            self::$pageHeadTags .= $tag . "\n";
        }
    }

Usage Example

/**
 * Add content to the html head
 *
 * @param string $tag
 */
function add_to_head($tag = "")
{
    OutputHandler::addToHead($tag);
}