Search for placeholder

  1. Search 7.x for placeholder
  2. Search 8.9.x for placeholder
  3. Search 10.3.x for placeholder
  4. Search 11.x for placeholder
  5. Other projects
Title Object type File name Summary
ContextualLinksPlaceholder.php file core/modules/contextual/src/Element/ContextualLinksPlaceholder.php
ContextualLinksPlaceholder::getInfo function core/modules/contextual/src/Element/ContextualLinksPlaceholder.php Returns the element properties for this element.
ContextualLinksPlaceholder::preRenderPlaceholder function core/modules/contextual/src/Element/ContextualLinksPlaceholder.php Pre-render callback: Renders a contextual links placeholder into #markup.
DynamicPluginConfigWithCsrfTokenUrlTrait::getUrlWithReplacedCsrfTokenPlaceholder function core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/DynamicPluginConfigWithCsrfTokenUrlTrait.php Gets the given URL with all placeholders replaced.
ElementTest::testPlaceHolderText function core/modules/system/tests/src/Functional/Form/ElementTest.php Tests placeholder text for elements that support placeholders.
EntityAccessCheckTest::testAccessWithTypePlaceholder function core/tests/Drupal/Tests/Core/Entity/EntityAccessCheckTest.php @covers ::access
EntityTest::testCalculateDependenciesWithPlaceholder function core/modules/views/tests/src/Unit/Plugin/area/EntityTest.php @covers ::calculateDependencies
ExtraFieldBlock::replaceFieldPlaceholder function core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php Replaces all placeholders for a given field.
FieldPluginBase::getFieldTokenPlaceholder function core/modules/views/src/Plugin/views/field/FieldPluginBase.php Returns a token placeholder for the current field.
FieldTest::getPlaceholder function core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldTest.php A mock function which allows to call placeholder from public.
FilterPlaceholderTextTest class core/modules/views/tests/src/Functional/Handler/FilterPlaceholderTextTest.php Tests the placeholder text on the appropriate filter handlers.
FilterPlaceholderTextTest.php file core/modules/views/tests/src/Functional/Handler/FilterPlaceholderTextTest.php
FilterPlaceholderTextTest::$defaultTheme property core/modules/views/tests/src/Functional/Handler/FilterPlaceholderTextTest.php The theme to install as the default for testing.
FilterPlaceholderTextTest::$modules property core/modules/views/tests/src/Functional/Handler/FilterPlaceholderTextTest.php Modules to enable.
FilterPlaceholderTextTest::$testViews property core/modules/views/tests/src/Functional/Handler/FilterPlaceholderTextTest.php Views used by this test.
FilterPlaceholderTextTest::testPlaceholderText function core/modules/views/tests/src/Functional/Handler/FilterPlaceholderTextTest.php Tests that HTML placeholders are added, when appropriate.
FilterProcessResult::createPlaceholder function core/modules/filter/src/FilterProcessResult.php Creates a placeholder.
FilterTestPlaceholders class core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php Provides a test filter to use placeholders.
FilterTestPlaceholders.php file core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php
FilterTestPlaceholders::process function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php Performs the filter processing.
FilterTestPlaceholders::renderDynamicThing function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php #lazy_builder callback; builds a render array containing the dynamic thing.
FilterTestPlaceholders::trustedCallbacks function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestPlaceholders.php Lists the trusted callbacks provided by the implementing class.
FormattableMarkup::placeholderEscape function core/lib/Drupal/Component/Render/FormattableMarkup.php Escapes a placeholder replacement value if needed.
FormattableMarkup::placeholderFormat function core/lib/Drupal/Component/Render/FormattableMarkup.php Replaces placeholders in a string with values.
FormattableMarkupTest::providerTestNullPlaceholder function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php Data provider for FormattableMarkupTest::testNullPlaceholder().
FormattableMarkupTest::providerTestUnexpectedPlaceholder function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php Data provider for FormattableMarkupTest::testUnexpectedPlaceholder().
FormattableMarkupTest::testNullPlaceholder function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php @covers ::__toString
@dataProvider providerTestNullPlaceholder
@group legacy
FormattableMarkupTest::testUnexpectedPlaceholder function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php @covers ::__toString
@dataProvider providerTestUnexpectedPlaceholder
FormBuilder::renderFormTokenPlaceholder function core/lib/Drupal/Core/Form/FormBuilder.php Renders the form CSRF token. It's a #lazy_builder callback.
FormBuilder::renderPlaceholderFormAction function core/lib/Drupal/Core/Form/FormBuilder.php Renders a form action URL. It's a #lazy_builder callback.
FormTestPlaceholderForm class core/modules/system/tests/modules/form_test/src/Form/FormTestPlaceholderForm.php Builds a form to test the placeholder attribute.
FormTestPlaceholderForm.php file core/modules/system/tests/modules/form_test/src/Form/FormTestPlaceholderForm.php
FormTestPlaceholderForm::buildForm function core/modules/system/tests/modules/form_test/src/Form/FormTestPlaceholderForm.php Form constructor.
FormTestPlaceholderForm::getFormId function core/modules/system/tests/modules/form_test/src/Form/FormTestPlaceholderForm.php Returns a unique string identifying the form.
FormTestPlaceholderForm::submitForm function core/modules/system/tests/modules/form_test/src/Form/FormTestPlaceholderForm.php Form submission handler.
HandlerBase::placeholder function core/modules/views/src/Plugin/views/HandlerBase.php Provides a unique placeholders for handlers.
HandlerTest::testPlaceholder function core/modules/views/tests/src/Functional/Handler/HandlerTest.php Tests the placeholder function.
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.
LayoutBuilderTest::testBlockPlaceholder function core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php Tests the usage of placeholders for empty blocks.
LogMessageParser::parseMessagePlaceholders function core/lib/Drupal/Core/Logger/LogMessageParser.php Parses and transforms message and its placeholders to a common format.
LogMessageParserInterface::parseMessagePlaceholders function core/lib/Drupal/Core/Logger/LogMessageParserInterface.php Parses and transforms message and its placeholders to a common format.

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