Search for placeholder

  1. Search 7.x for placeholder
  2. Search 9.5.x for placeholder
  3. Search 8.9.x for placeholder
  4. Search 11.x for placeholder
  5. Other projects
Title Object type File name Summary
HtmlResponseAttachmentsProcessor::renderHtmlResponseAttachmentPlaceholders function core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Renders HTML response attachment placeholders.
HtmlResponseAttachmentsProcessor::renderPlaceholders function core/lib/Drupal/Core/Render/HtmlResponseAttachmentsProcessor.php Renders placeholders (#attached['placeholders']).
HtmlResponsePlaceholderStrategySubscriber class core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php HTML response subscriber to allow for different placeholder strategies.
HtmlResponsePlaceholderStrategySubscriber.php file core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php
HtmlResponsePlaceholderStrategySubscriber::$placeholderStrategy property core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php The placeholder strategy to use.
HtmlResponsePlaceholderStrategySubscriber::getSubscribedEvents function core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php
HtmlResponsePlaceholderStrategySubscriber::onRespond function core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php Processes placeholders for HTML responses.
HtmlResponsePlaceholderStrategySubscriber::__construct function core/lib/Drupal/Core/EventSubscriber/HtmlResponsePlaceholderStrategySubscriber.php Constructs a HtmlResponsePlaceholderStrategySubscriber object.
html_response.placeholder_strategy_subscriber service core/core.services.yml Drupal\Core\EventSubscriber\HtmlResponsePlaceholderStrategySubscriber
InsertTrait::getInsertPlaceholderFragment function core/lib/Drupal/Core/Database/Query/InsertTrait.php Returns the query placeholders for values that will be inserted.
LayoutBuilderBlocksTest::testBlockPlaceholder function core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php Tests the usage of placeholders for empty blocks.
LogMessageParser::parseMessagePlaceholders function core/lib/Drupal/Core/Logger/LogMessageParser.php
LogMessageParserInterface::parseMessagePlaceholders function core/lib/Drupal/Core/Logger/LogMessageParserInterface.php Parses and transforms message and its placeholders to a common format.
LogMessageParserTest::providerTestParseMessagePlaceholders function core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php Data provider for testParseMessagePlaceholders().
LogMessageParserTest::testParseMessagePlaceholders function core/tests/Drupal/Tests/Core/Logger/LogMessageParserTest.php Tests for LogMessageParserTrait::parseMessagePlaceholders()
ManyPlaceholderTest class core/modules/big_pipe/tests/src/Unit/Render/ManyPlaceholderTest.php @coversDefaultClass \Drupal\big_pipe\Render\BigPipe
@group big_pipe
ManyPlaceholderTest.php file core/modules/big_pipe/tests/src/Unit/Render/ManyPlaceholderTest.php
ManyPlaceholderTest::testManyNoJsPlaceHolders function core/modules/big_pipe/tests/src/Unit/Render/ManyPlaceholderTest.php @covers \Drupal\big_pipe\Render\BigPipe::sendNoJsPlaceholders
ManyToOneHelper::placeholder function core/modules/views/src/ManyToOneHelper.php Provides a unique placeholders for handlers.
MenuRouterTest::doTestMenuOptionalPlaceholders function core/modules/system/tests/src/Functional/Menu/MenuRouterTest.php Tests menu links that have optional placeholders.
OliveroPreRender::messagePlaceholder function core/themes/olivero/src/OliveroPreRender.php Prerender callback for status_messages placeholder.
PlaceholderGenerator class core/lib/Drupal/Core/Render/PlaceholderGenerator.php Turns a render array into a placeholder.
PlaceholderGenerator.php file core/lib/Drupal/Core/Render/PlaceholderGenerator.php
PlaceholderGenerator::$cacheContextsManager property core/lib/Drupal/Core/Render/PlaceholderGenerator.php The cache contexts manager service.
PlaceholderGenerator::$rendererConfig property core/lib/Drupal/Core/Render/PlaceholderGenerator.php The renderer configuration array.
PlaceholderGenerator::canCreatePlaceholder function core/lib/Drupal/Core/Render/PlaceholderGenerator.php
PlaceholderGenerator::createPlaceholder function core/lib/Drupal/Core/Render/PlaceholderGenerator.php
PlaceholderGenerator::shouldAutomaticallyPlaceholder function core/lib/Drupal/Core/Render/PlaceholderGenerator.php
PlaceholderGenerator::__construct function core/lib/Drupal/Core/Render/PlaceholderGenerator.php Constructs a new Placeholder service.
PlaceholderGeneratorInterface interface core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php Defines an interface for turning a render array into a placeholder.
PlaceholderGeneratorInterface.php file core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php
PlaceholderGeneratorInterface::canCreatePlaceholder function core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php Analyzes whether the given render array can be placeholdered.
PlaceholderGeneratorInterface::createPlaceholder function core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php Turns the given element into a placeholder.
PlaceholderGeneratorInterface::shouldAutomaticallyPlaceholder function core/lib/Drupal/Core/Render/PlaceholderGeneratorInterface.php Whether the given render array should be automatically placeholdered.
PlaceholderGeneratorTest class core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php @coversDefaultClass \Drupal\Core\Render\PlaceholderGenerator
@group Render
PlaceholderGeneratorTest.php file core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php
PlaceholderGeneratorTest::$placeholderGenerator property core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php The tested placeholder generator.
PlaceholderGeneratorTest::providerCreatePlaceholderGeneratesValidHtmlMarkup function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php
PlaceholderGeneratorTest::testCreatePlaceholderGeneratesValidHtmlMarkup function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php @covers ::createPlaceholder
@dataProvider providerCreatePlaceholderGeneratesValidHtmlMarkup
PlaceholderGeneratorTest::testRenderPlaceholdersDifferentSortedContextsTags function core/tests/Drupal/Tests/Core/Render/PlaceholderGeneratorTest.php Tests the creation of an element with a #lazy_builder callback.
PlaceholderingRenderCache class core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php Adds automatic placeholdering to the RenderCache.
PlaceholderingRenderCache.php file core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php
PlaceholderingRenderCache::$placeholderGenerator property core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php The placeholder generator.
PlaceholderingRenderCache::$placeholderResultsCache property core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php Stores rendered results for automatically placeholdered elements.
PlaceholderingRenderCache::createPlaceholderAndRemember function core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php Create a placeholder for a renderable array and remember in a static cache.
PlaceholderingRenderCache::get function core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php
PlaceholderingRenderCache::getFromPlaceholderResultsCache function core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php Retrieves an auto-placeholdered renderable array from the static cache.
PlaceholderingRenderCache::set function core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php
PlaceholderingRenderCache::__construct function core/lib/Drupal/Core/Render/PlaceholderingRenderCache.php Constructs a new PlaceholderingRenderCache object.
PlaceholderInterface interface core/lib/Drupal/Core/Database/Query/PlaceholderInterface.php Interface for a query that accepts placeholders.

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