Html.php

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

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/Html.php

View source
<?php

namespace Drupal\Core\Render\Element;

use Drupal\Core\Render\Attribute\RenderElement;

/**
 * Provides a render element for an entire HTML page: <html> plus its children.
 */
class Html extends RenderElementBase {
    
    /**
     * {@inheritdoc}
     */
    public function getInfo() {
        return [
            '#theme' => 'html',
        ];
    }

}

Classes

Title Deprecated Summary
Html Provides a render element for an entire HTML page: <html> plus its children.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.