class Html
Same name in this branch
- main core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Render/Element/Html.php \Drupal\Core\Render\Element\Html
- 11.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html
- 10 core/lib/Drupal/Core/Render/Element/Html.php \Drupal\Core\Render\Element\Html
- 10 core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html
- 9 core/lib/Drupal/Core/Render/Element/Html.php \Drupal\Core\Render\Element\Html
- 9 core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html
- 8.9.x core/lib/Drupal/Core/Render/Element/Html.php \Drupal\Core\Render\Element\Html
- 8.9.x core/lib/Drupal/Component/Utility/Html.php \Drupal\Component\Utility\Html
Provides a render element for an entire HTML page: <html> plus its children.
Attributes
#[RenderElement('html')]
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\DependencyInjection\AutowiredInstanceTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\Render\Element\RenderElementBase implements \Drupal\Core\Render\Element\ElementInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Render\Element\Html extends \Drupal\Core\Render\Element\RenderElementBase
- class \Drupal\Core\Render\Element\RenderElementBase implements \Drupal\Core\Render\Element\ElementInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\DependencyInjection\AutowiredInstanceTrait, \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of Html
73 string references to 'Html'
- AcceptHeaderMatcherTest::acceptFilterProvider in core/
tests/ Drupal/ Tests/ Core/ Routing/ AcceptHeaderMatcherTest.php - Provides data for the Accept header filtering test.
- AcceptHeaderMiddleware::handle in core/
modules/ system/ tests/ modules/ accept_header_routing_test/ src/ AcceptHeaderMiddleware.php - AccessDeniedSubscriber::getHandledFormats in core/
modules/ user/ src/ EventSubscriber/ AccessDeniedSubscriber.php - AdminRouteSubscriber::isHtmlRoute in core/
modules/ system/ src/ EventSubscriber/ AdminRouteSubscriber.php - Determines whether the given route is an HTML route.
- AdminRouteSubscriberTest::providerTestAlterRoutes in core/
modules/ system/ tests/ src/ Unit/ Routing/ AdminRouteSubscriberTest.php - Provides data to testAlterRoutes().
2 #type uses of Html
- BareHtmlPageRenderer::renderBarePage in core/
lib/ Drupal/ Core/ Render/ BareHtmlPageRenderer.php - HtmlRenderer::renderResponse in core/
lib/ Drupal/ Core/ Render/ MainContent/ HtmlRenderer.php - The entire HTML: takes a #type 'page' and wraps it in a #type 'html'.
File
-
core/
lib/ Drupal/ Core/ Render/ Element/ Html.php, line 10
Namespace
Drupal\Core\Render\ElementView source
class Html extends RenderElementBase {
/**
* {@inheritdoc}
*/
public function getInfo() {
return [
'#theme' => 'html',
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.