Same filename in this branch
  1. 8.9.x core/lib/Drupal/Component/Utility/Html.php
  2. 8.9.x core/lib/Drupal/Core/Render/Element/Html.php
Same filename and directory in other branches
  1. 10 core/lib/Drupal/Core/Render/Element/Html.php
  2. 9 core/lib/Drupal/Core/Render/Element/Html.php

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/Html.php
View source
<?php

namespace Drupal\Core\Render\Element;


/**
 * Provides a render element for an entire HTML page: <html> plus its children.
 *
 * @RenderElement("html")
 */
class Html extends RenderElement {

  /**
   * {@inheritdoc}
   */
  public function getInfo() {
    return [
      '#theme' => 'html',
      // HTML5 Shiv
      '#attached' => [
        'library' => [
          'core/html5shiv',
        ],
      ],
    ];
  }

}

Classes

Namesort descending Description
Html Provides a render element for an entire HTML page: <html> plus its children.