lithium\template\helper\Html::head PHP Method

head() public method

If there is a rendering context, then it also pushes the resulting tag to it. The $options must match the named parameters from $_strings for the given $tag.
public head ( string $tag, array $options ) : mixed
$tag string the name of a key in `$_strings`
$options array the options required by `$_strings[$tag]`
return mixed a string if successful, otherwise `null`
    public function head($tag, array $options)
    {
        if (!isset($this->_strings[$tag])) {
            return null;
        }
        $method = __METHOD__;
        $filter = function ($self, $options, $chain) use($method, $tag) {
            return $self->invokeMethod('_render', array($method, $tag, $options));
        };
        $head = $this->_filter($method, $options, $filter);
        if ($this->_context) {
            $this->_context->head($head);
        }
        return $head;
    }