Returns the tag marking the position of an HTML head section.
@return string The tag marking the position of an HTML head section.
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']);
  }
13073
public function getTitle()
    {
        $node = $this->html->findFirstTag('title');

        return $node ? trim($node->nodeValue) : null;
    }
404427
public function getHtmlHeader(): string
  {
    $ret = Html::generateTag('tr', ['class' => [OverviewTable::$class, 'header']]);
    foreach ($this->slatJoints as $factory)
    {
      $ret .= $factory->getHtmlColumnHeader();
    }
    $ret .= '<th class="error"></th>';
    $ret .= '</tr>';

    if ($this->filter)
    {
      $ret .= Html::generateTag('tr', ['class' => [OverviewTable::$class, 'filter']]);
      foreach ($this->slatJoints as $factory)
      {
        $ret .= $factory->getHtmlColumnFilter();
      }
      $ret .= '<th class="error"></th>';
      $ret .= '</tr>';
    }

    return $ret;
  }
395961
protected function getTagsLocator() {
		if ($this->tagsLocator === null) {
			$di = new Container();
			
			$di->keyword = function() {
				return new Tag('span', null, 'content-keyword');
			};
			
			$di->alert = function() {
				return new Tag('span', null, 'content-alert');
			};
			
			$di->warning = function() {
				return new Tag('span', null, 'content-warning');
			};
			
			$di->success = function() {
				return new Tag('span', null, 'content-success');
			};
			
			$di->info = function() {
				return new Tag('span', null, 'content-info');
			};
			
			$di->special = function() {
				return new Tag('span', null, 'content-special');
			};
			
			$di->strong = function() {
				return new Tag('strong');
			};
			
			$di->title = function() {
				return new Tag('h4', null, 'content-title');
			};
			
			$di->topology = 'ZExt\Topology\Topology';
			
			$this->tagsLocator = $di;
		}
		
		return $this->tagsLocator;
	}
1080748
protected function getHead()
    {
        $head = $this->getDocument()->createElement('head');
        $metahttp = $this->getDocument()->createElement('meta');
        $metahttp->setAttribute('http-equiv', 'Content-Type');
        $metahttp->setAttribute('content', 'text/html; charset=utf-8');
        $head->appendChild($metahttp);
        $head->appendChild($this->getDocument()->createElement('title', 'Generated List'));

        foreach ($this->getStylesheets() as $href) {
            $stylesheet = $this->getDocument()->createElement('link');
            $stylesheet->setAttribute('href', $href);
            $stylesheet->setAttribute('rel', 'stylesheet');
            $stylesheet->setAttribute('type', 'text/css');
            $head->appendChild($stylesheet);
        }

        return $head;
    }
144130
public function position()
    {
        $node = $this->node;
        return $node->index === 'content' ? 1 :
            isset($node->position) ? $node->position : null;
    }
1116158
public function getOpeningTag(): string
    {
        $attributes = [];

        foreach ($this->attributes as $name => $value) {
            $attributes[] = self::getHtmlAttribute($name, $value);
        }

        $attributes = implode(' ', array_filter($attributes));

        return sprintf('<%s%s>', $this->nodeName, $attributes === '' ? '' : " {$attributes}");
    }
413863
public function toString()
        {
            if ($this->void) {
                return '<'.$this->tag.$this->createAttributes().' />';
            } else {
                return '<'.$this->tag.$this->createAttributes().'>'.$this->recursivelyStringify($this->content).'</'.$this->tag.'>';
            }
        }
655127
protected function getMarkupComment()
    {
        $markupComment = null;

        foreach ($this->getCommentSections() as $commentSection) {
            // Identify the markup comment by the Markup: marker
            if (preg_match('/^\s*Markup:/i', $commentSection)) {
                $markupComment = $commentSection;
                break;
            }
        }

        return $markupComment;
    }
123094
public function getHtmlOrText()
	{
		if ($template = $this->getTemplate ()) {
			if (!isset ($this->isHTML))
				$this->setIsHTML(true);
			return $template->parse ();
		} else if ($body = $this->getBody ()) {
			$this->setIsHTML(true);
			return $body;
		} else if ($text = $this->getText ()) {
			$this->setIsHTML(false);
			return $text;
		}

		$this->setIsHTML(false);
		return 'No body set.';
	}
1345651
protected function getSpanTag()
    {
        $title = strval($this->title);

        $span = new SwatHtmlTag('span');
        $span->class = 'swat-disclosure-span';
        $span->setContent($title);

        return $span;
    }
1369818
public function getElement()
    {
        $this->startCommentBlock();
        foreach ($this->description as $line) {
            $this->addLine($line);
        }
        $this->addBlankLine();

        if (count($this->var_types) > 0) {
            $type_ltgh = max(array_map('mb_strlen', $this->var_types));
            $var_ltgh = max(array_map('mb_strlen', array_keys($this->var_types)));
            foreach ($this->var_types as $name => $type) {
                $type = str_pad($type, $type_ltgh);
                $param = str_pad($name, $var_ltgh);
                $this->addLine('@param '.$type.'$'.$param.' '.$this->var_descriptions[$name]);
            }
            $this->addBlankLine();
        }

        if (count($this->params) > 0) {
            $params_ltgh = array_map('strlen', array_keys($this->params));
            foreach ($this->params as $param => $value) {
                $this->addLine('@'.str_pad($param, max($params_ltgh)).' '.$value);
            }
        }

        $this->endCommentBlock();
        return $this->lines;
    }
1199966
protected function getInsensitiveTag()
    {
        $tag = new SwatHtmlTag('span');

        $tag->id = $this->id;
        $tag->class = $this->getCSSClassString();

        if ($this->tooltip !== null) {
            $tag->title = $this->tooltip;
        }

        return $tag;
    }
1334839
public function label() {
		$output = null;
		if ( ! empty( $this->struct['label'] ) ) {
			$output .= '<div class="uix-' . esc_attr( $this->type ) . '-heading"><h3 class="uix-' . esc_attr( $this->type ) . '-title">' . esc_html( $this->struct['label'] ) . '</h3></div>';
		}

		return $output;
	}
256247
public function tag()
    {
        $tag = $this->getCurrentTag();

        if ($tag) {
            $this->blogPosts = $tag->BlogPosts();

            if ($this->isRSS()) {
                return $this->rssFeed($this->blogPosts, $tag->getLink());
            } else {
                return $this->render();
            }
        }

        $this->httpError(404, 'Not Found');

        return null;
    }
1049832
public function getTag() {
		if($this->exists()) {
			$url = $this->getURL();
			$title = ($this->Title) ? $this->Title : $this->Filename;
			if($this->Title) {
				$title = Convert::raw2att($this->Title);
			} else {
				if(preg_match("/([^\/]*)\.[a-zA-Z0-9]{1,6}$/", $title, $matches)) {
					$title = Convert::raw2att($matches[1]);
				}
			}
			return "<img src=\"$url\" alt=\"$title\" ".$this->getAttributesHTML()." />";
		}
	}
1253227
protected function getTitleTag()
    {
        $label_tag = new SwatHtmlTag('label');

        if ($this->title !== null) {
            if ($this->show_colon) {
                $label_tag->setContent(
                    sprintf(Swat::_('%s: '), $this->title),
                    $this->title_content_type
                );
            } else {
                $label_tag->setContent($this->title, $this->title_content_type);
            }
        }

        $label_tag->for = $this->getFocusableHtmlId();
        $label_tag->accesskey = $this->access_key;

        return $label_tag;
    }