Returns the HEAD element, or creates one if it doesn't exist.

@return DOMElement  HEAD element.
494262
public function getHead()
    {
        $head = $this->dom->getElementsByTagName('head');
        if ($head->length) {
            return $head->item(0);
        }

        $headelt = $this->dom->createElement('head');
        $this->dom->documentElement->insertBefore($headelt, $this->dom->documentElement->firstChild);

        return $headelt;
    }
327272
public function getTitle()
    {
        if (empty($this->title)) {
            $this->title = $this->_xml->children('h', true)->head->children('h', true)->title;
        }

        return $this->title;
    }
864690
public function getAvailableHtmlHeadEntrySet()
    {
        $set = new SwatHtmlHeadEntrySet($this->html_head_entry_set);

        foreach ($this->getCompositeWidgets() as $widget) {
            $set->addEntrySet($widget->getAvailableHtmlHeadEntrySet());
        }

        return $set;
    }
104697
function() {
			var d = doc,
				de = d.documentElement,
				heads = d[STR_GET_BY_TAG]("head"),
				hd = heads[0];
			if (! hd ) {
				hd = d[STR_CREATE_ELEMENT]('head');
				de.insertBefore(hd, de.firstChild);
			}
			// replace head so it runs fast next time.
			head = function(){
				return hd;
			}
			return hd;
		}
398393
public function getInheritedElement()
    {
        /** @var ClassDescriptor|InterfaceDescriptor|null $associatedClass */
        $associatedClass = $this->getParent();

        if (($associatedClass instanceof ClassDescriptor || $associatedClass instanceof InterfaceDescriptor)
            && ($associatedClass->getParent() instanceof ClassDescriptor
                || $associatedClass->getParent() instanceof InterfaceDescriptor
            )
        ) {
            /** @var ClassDescriptor|InterfaceDescriptor $parentClass */
            $parentClass = $associatedClass->getParent();

            return $parentClass->getProperties()->get($this->getName());
        }

        return null;
    }
1216251
public function headRequest()
    {
        $operation = array(
            'API' => 'HeadBucket',
            'Method' => 'HEAD',
            'Uri' => '/<bucket-name>',
            'Headers' => array(
                'Host' => $this->properties['zone'] . '.' . $this->config->host,
            ),
            'Params' => array(
            ),
            'Elements' => array(
            ),
            'Properties' => $this->properties,
            'Body' => null
        );
        $this->headValidate($operation);
        $req = new Request($this->config, $operation);
        return $req;
    }
1315084
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        foreach ($this->children as $child_widget) {
            $set->addEntrySet($child_widget->getHtmlHeadEntrySet());
        }

        return $set;
    }
66366
protected Content getHead(Element member) {
        Content memberContent = new StringContent(name(member));
        Content heading = HtmlTree.HEADING(HtmlConstants.MEMBER_HEADING, memberContent);
        return heading;
    }
264219
def get_or_create_head(root):
    
    head = _create_cssselector("head")(root)
    if not head:
        head = etree.Element("head")
        body = _create_cssselector("body")(root)[0]
        body.getparent().insert(0, head)
        return head
    else:
        return head[0]
59223
public function getHeadingText()
    {
        if ($this->Heading) {
            return $this->Heading;
        }
        
        if ($this->hasLinkPage()) {
            return $this->LinkPage()->MetaTitle;
        }
    }
73404
public Head getHead() {
    if (EntityMention_Type.featOkTst && ((EntityMention_Type)jcasType).casFeat_head == null)
      jcasType.jcas.throwFeatMissing("head", "de.julielab.jules.types.ace.EntityMention");
    return (Head)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((EntityMention_Type)jcasType).casFeatCode_head)));}
818208
protected function _getHeaderTitleHtml($element)
    {
        $html = '<div class="entry-edit-head collapseable" ><a id="' . $element->getHtmlId()
            . '-head" href="#" onclick="Fieldset.toggleCollapse(\'' . $element->getHtmlId() . '\', \''
            . $this->getUrl('*/*/state') . '\'); return false;">';

        $html .= ' <img src="' . $this->getSkinUrl('images/adyen/logo.png') . '" height="20" style="vertical-align: text-bottom; margin-right: 5px;"/> ';
        $html .= $element->getLegend();
        if ($this->_isPaymentEnabled($element)) {
            $html .= ' <img src="' . $this->getSkinUrl('images/icon-enabled.png') . '" style="vertical-align: middle"/> ';
        }

        $html .= '</a></div>';
        return $html;
    }
838053
final public static function head($xs, $n = null, $guard = null)
    {
        return static::first($xs, $n, $guard);
    }
972574
public function getHtmlHeadEntrySet()
    {
        if ($this->isVisible()) {
            $set = new SwatHtmlHeadEntrySet($this->html_head_entry_set);
        } else {
            $set = new SwatHtmlHeadEntrySet();
        }

        return $set;
    }
216301
public function firstToken() {
    $head = $this->head;
    while ($head instanceof ParentNode) {
      $head = $head->head;
    }
    return $head;
  }
43814
public function getHtmlHeadEntrySet()
    {
        $set = parent::getHtmlHeadEntrySet();

        $this->createEmbeddedWidgets();
        $set->addEntrySet($this->enter_another_link->getHtmlHeadEntrySet());

        return $set;
    }
7273
function getHead(): string {
    /** @var \yii\web\View|null $view */
    $view = \Yii::$app->view;
    if (!$view || !$view->hasMethod('head')) return '';
    return $this->captureOutput([$view, 'head']);
  }