Search for placeholder

  1. Search 7.x for placeholder
  2. Search 9.5.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
ClaroPreRender::messagePlaceholder function core/themes/claro/src/ClaroPreRender.php Prerender callback for status_messages placeholder.
Condition::$queryPlaceholderIdentifier property core/lib/Drupal/Core/Database/Query/Condition.php The identifier of the query placeholder this condition has been compiled against.
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.
drupal_placeholder function core/includes/bootstrap.inc Formats text for emphasized display in a placeholder inside a sentence.
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.
filter-placeholder-text.php file core/modules/views/tests/fixtures/update/filter-placeholder-text.php Test fixture.
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.
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

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