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 10.3.x for placeholder
  5. Other projects
Title Object type File name Summary
ContextualDynamicContextTest::assertContextualLinkPlaceHolder function core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php Asserts that a contextual link placeholder with the given id exists.
ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder function core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php Asserts that a contextual link placeholder with the given id does not exist.
ContextualLinksPlaceholder class core/modules/contextual/src/Element/ContextualLinksPlaceholder.php Provides a contextual_links_placeholder element.
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.
DbLogTest::testInvalidPlaceholders function core/modules/dblog/tests/src/Kernel/DbLogTest.php Tests that only valid placeholders are stored in the variables column.
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
EntityFormDisplayValidationTest::testMultilineTextFieldWidgetPlaceholder function core/tests/Drupal/KernelTests/Core/Entity/EntityFormDisplayValidationTest.php Tests validation of entity form display component's widget settings.
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.
FiberPlaceholderTest class core/modules/big_pipe/tests/src/Unit/Render/FiberPlaceholderTest.php @coversDefaultClass \Drupal\big_pipe\Render\BigPipe
@group big_pipe
FiberPlaceholderTest.php file core/modules/big_pipe/tests/src/Unit/Render/FiberPlaceholderTest.php
FiberPlaceholderTest::testLongPlaceholderFiberSuspendingLoop function core/modules/big_pipe/tests/src/Unit/Render/FiberPlaceholderTest.php @covers \Drupal\big_pipe\Render\BigPipe::sendPlaceholders
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::providerTestUnexpectedPlaceholder function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php Data provider for FormattableMarkupTest::testUnexpectedPlaceholder().
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.

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