Search for header

  1. Search 7.x for header
  2. Search 9.5.x for header
  3. Search 8.9.x for header
  4. Search 11.x for header
  5. Other projects
Title Object type File name Summary
FileUploadResourceTestBase::testPostFileUploadInvalidHeaders function core/modules/rest/tests/src/Functional/FileUploadResourceTestBase.php Tests using the file upload POST route with invalid headers.
FileUploadTest::testPostFileUploadInvalidHeaders function core/modules/jsonapi/tests/src/Functional/FileUploadTest.php Tests using the file upload POST route with invalid headers.
file_get_content_headers function core/modules/file/file.module Examines a file entity and returns appropriate content headers for download.
FilterFormatListBuilder::buildHeader function core/modules/filter/src/FilterFormatListBuilder.php Builds the header row for the entity listing.
FinishResponseSubscriber::$debugCacheabilityHeaders property core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php Whether to send cacheability headers for debugging purposes.
FinishResponseSubscriberTest::testDefaultHeaders function core/tests/Drupal/Tests/Core/EventSubscriber/FinishResponseSubscriberTest.php Finish subscriber should set some default header values.
FinishResponseSubscriberTest::testExistingHeaders function core/tests/Drupal/Tests/Core/EventSubscriber/FinishResponseSubscriberTest.php Finish subscriber should not overwrite existing header values.
header-buttons-mobile.css file core/themes/olivero/css/components/header-buttons-mobile.css Header Mobile Buttons.
header-buttons-mobile.pcss.css file core/themes/olivero/css/components/header-buttons-mobile.pcss.css Header Mobile Buttons.
header-navigation.css file core/themes/olivero/css/components/header-navigation.css Navigation in header.
header-navigation.pcss.css file core/themes/olivero/css/components/header-navigation.pcss.css Navigation in header.
header-search-narrow.css file core/themes/olivero/css/components/header-search-narrow.css Header Search Narrow Block.
header-search-narrow.pcss.css file core/themes/olivero/css/components/header-search-narrow.pcss.css Header Search Narrow Block.
header-search-wide.css file core/themes/olivero/css/components/header-search-wide.css Header Search Wide Block.
header-search-wide.pcss.css file core/themes/olivero/css/components/header-search-wide.pcss.css Header Search Wide Block.
header-site-branding.css file core/themes/olivero/css/components/header-site-branding.css Site branding in header.
header-site-branding.pcss.css file core/themes/olivero/css/components/header-site-branding.pcss.css Site branding in header.
header-sticky-toggle.css file core/themes/olivero/css/components/header-sticky-toggle.css Sticky Header Toggle Button.
header-sticky-toggle.pcss.css file core/themes/olivero/css/components/header-sticky-toggle.pcss.css Sticky Header Toggle Button.
header.component.yml file core/profiles/demo_umami/themes/umami/components/header/header.component.yml core/profiles/demo_umami/themes/umami/components/header/header.component.yml
header.css file core/profiles/demo_umami/themes/umami/components/header/header.css .umami-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 0.75rem 4%;
}

/* Medium */
@media screen and (min-width: 48rem) {
/* 768px */
.umami-header {
padding-top: 0;
}
}

/*…
header.css file core/profiles/demo_umami/themes/umami/css/components/regions/header/header.css This file is used to style the header.
header.twig file core/profiles/demo_umami/themes/umami/components/header/header.twig <div{{ attributes.addClass('umami-header') }}>
<div class="umami-header__logo">
{% block logo %}{% endblock %}
</div>
<button
type="button"
class="umami-header__burger"
HeadersCacheContext class core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Defines the HeadersCacheContext service, for "per header" caching.
HeadersCacheContext.php file core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
HeadersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the string representation of the cache context.
HeadersCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the label of the cache context.
HeadersCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\HeadersCacheContext
@group Cache
HeadersCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php
HeadersCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php Provides a list of headers and expected cache contexts.
HeadersCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @covers ::getContext
HtmlResponseAttachmentsProcessor::formatHttpHeaderAttributes function core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Formats an attribute string for an HTTP header.
HtmlResponseAttachmentsProcessor::setHeaders function core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Sets headers on a response object.
HtmlResponseAttachmentsTest::assertTeapotHeaders function core/modules/system/tests/src/Functional/Render/HtmlResponseAttachmentsTest.php Helper function to make assertions about added HTTP headers.
HtmlToTextTest::testHeaderSeparation function core/modules/system/tests/src/Unit/Mail/HtmlToTextTest.php Tests that headers are properly separated from surrounding text.
ImageStyleListBuilder::buildHeader function core/modules/image/src/ImageStyleListBuilder.php Builds the header row for the entity listing.
input--submit--header-search.html.twig file core/themes/olivero/templates/form/input--submit--header-search.html.twig Theme override for the search form submit button.
LanguageListBuilder::buildHeader function core/modules/language/src/LanguageListBuilder.php Builds the header row for the entity listing.
MailTest::testFromAndReplyToHeader function core/modules/system/tests/src/Kernel/Mail/MailTest.php Checks the From: and Reply-to: headers.
MediaListBuilder::buildHeader function core/modules/media/src/MediaListBuilder.php Builds the header row for the entity listing.
MediaTypeListBuilder::buildHeader function core/modules/media/src/MediaTypeListBuilder.php Builds the header row for the entity listing.
MenuListBuilder::buildHeader function core/modules/menu_ui/src/MenuListBuilder.php Builds the header row for the entity listing.
ModeratedNodeListBuilder::buildHeader function core/modules/content_moderation/src/ModeratedNodeListBuilder.php Builds the header row for the entity listing.
NodeListBuilder::buildHeader function core/modules/node/src/NodeListBuilder.php Builds the header row for the entity listing.
NodeTypeListBuilder::buildHeader function core/modules/node/src/NodeTypeListBuilder.php Builds the header row for the entity listing.
NodeViewTest::testLinkHeader function core/modules/node/tests/src/Functional/NodeViewTest.php Tests the Link header.
Page header for Classes page group core/core.api.php Introduction to classes
Page header for Elements page group core/lib/Drupal/Core/Render/theme.api.php Introduction to form and render elements
Page header for Namespaces page group core/core.api.php Introduction to namespaces

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