Search for replace

  1. Search 7.x for replace
  2. Search 8.9.x for replace
  3. Search 10.3.x for replace
  4. Search 11.x for replace
  5. Other projects
Title Object type File name Summary
AjaxCommandsTest::testReplaceCommand function core/tests/Drupal/Tests/Core/Ajax/AjaxCommandsTest.php @covers \Drupal\Core\Ajax\ReplaceCommand[[api-linebreak]]
block_post_update_replace_node_type_condition function core/modules/block/block.post_update.php Updates the node type visibility condition.
CommentTokenReplaceTest class core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Tests comment token replacement.
CommentTokenReplaceTest.php file core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php
CommentTokenReplaceTest::$defaultTheme property core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php The theme to install as the default for testing.
CommentTokenReplaceTest::$modules property core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Modules to install.
CommentTokenReplaceTest::testCommentTokenReplacement function core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Creates a comment, then tests the tokens generated from it.
ComposerIntegrationTest::testAllCoreComponentsReplaced function core/tests/Drupal/Tests/ComposerIntegrationTest.php Tests core's composer.json replace section.
Connection::$prefixReplace property core/lib/Drupal/Core/Database/Connection.php List of replacement values for use in prefixTables().
DataFieldRow::$replacementAliases property core/modules/rest/src/Plugin/views/row/DataFieldRow.php Stores an array of prepared field aliases from options.
FileSystemInterface::EXISTS_REPLACE constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Replace the existing file.
FilterTestReplace class core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestReplace.php Provides a test filter to replace all content.
FilterTestReplace.php file core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestReplace.php
FilterTestReplace::process function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestReplace.php Performs the filter processing.
Fixtures::getLocationReplacements function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php Gets an Interpolator with 'web-root' and 'package-name' set.
Fixtures::replaceOp function core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Fixtures.php Creates a ReplaceOp fixture.
FormattableMarkupTest::testNoReplacementUnsupportedVariable function core/tests/Drupal/Tests/Component/Render/FormattableMarkupTest.php @group legacy
ImageAdminStylesTest::testStyleReplacement function core/modules/image/tests/src/Functional/ImageAdminStylesTest.php Tests deleting a style and choosing a replacement style.
ImageStyle::getReplacementID function core/modules/image/src/Entity/ImageStyle.php
ImageStyle::replaceImageStyle function core/modules/image/src/Entity/ImageStyle.php Update field settings if the image style name is changed.
ImageStyleDeleteForm::$replacementOptions property core/modules/image/src/Form/ImageStyleDeleteForm.php Replacement options.
ImageStyleDeleteForm::getReplacementOptions function core/modules/image/src/Form/ImageStyleDeleteForm.php Returns a list of image style replacement options.
ImageStyleStorage::$replacement property core/modules/image/src/ImageStyleStorage.php Image style replacement memory storage.
ImageStyleStorage::clearReplacementId function core/modules/image/src/ImageStyleStorage.php Clears a replacement ID from the storage.
ImageStyleStorage::getReplacementId function core/modules/image/src/ImageStyleStorage.php Retrieves the replacement ID of a deleted image style.
ImageStyleStorage::setReplacementId function core/modules/image/src/ImageStyleStorage.php Stores a replacement ID for an image style being deleted.
ImageStyleStorageInterface::clearReplacementId function core/modules/image/src/ImageStyleStorageInterface.php Clears a replacement ID from the storage.
ImageStyleStorageInterface::getReplacementId function core/modules/image/src/ImageStyleStorageInterface.php Retrieves the replacement ID of a deleted image style.
ImageStyleStorageInterface::setReplacementId function core/modules/image/src/ImageStyleStorageInterface.php Stores a replacement ID for an image style being deleted.
LayoutBuilderQuickEditTest::replaceLayoutBuilderFieldIdKeys function core/modules/quickedit/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php Replaces the array keys with Layout Builder field IDs when needed.
MachineName::$replacePattern property core/modules/migrate/src/Plugin/migrate/process/MachineName.php The regular expression pattern.
MachineNameControllerTest::testMachineNameControllerWithInvalidReplacePattern function core/modules/system/tests/src/Unit/Transliteration/MachineNameControllerTest.php Tests the pattern validation.
MysqlDateSql::$replace property core/modules/views/src/Plugin/views/query/MysqlDateSql.php An array of PHP-to-MySQL replacement patterns.
NodeFieldTokensTest::testViewsTokenReplacement function core/modules/node/tests/src/Functional/Views/NodeFieldTokensTest.php Tests token replacement for Views tokens supplied by the Node module.
NodeTokenReplaceTest class core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php Tests node token replacement.
NodeTokenReplaceTest.php file core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
NodeTokenReplaceTest::$modules property core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php Modules to enable.
NodeTokenReplaceTest::setUp function core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php
NodeTokenReplaceTest::testNodeTokenReplacement function core/modules/node/tests/src/Kernel/NodeTokenReplaceTest.php Creates a node, then tests the tokens generated from it.
PhpTransliteration::lookupReplacement function core/lib/Drupal/Component/Transliteration/PhpTransliteration.php Look up the generic replacement for a UTF-8 character code.
PhpTransliteration::replace function core/lib/Drupal/Component/Transliteration/PhpTransliteration.php Replaces a single Unicode character using the transliteration database.
PluginBase::globalTokenReplace function core/modules/views/src/Plugin/views/PluginBase.php Returns a string with any core tokens replaced.
PluginBase::viewsTokenReplace function core/modules/views/src/Plugin/views/PluginBase.php Replaces Views' tokens in a given string.
PluginBaseTest::testViewsTokenReplace function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests that the token replacement in views works correctly.
PluginBaseTest::testViewsTokenReplaceWithDots function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests that the token replacement in views works correctly with dots.
PluginBaseTest::testViewsTokenReplaceWithTwigTokens function core/modules/views/tests/src/Kernel/Plugin/PluginBaseTest.php Tests viewsTokenReplace without any twig tokens.
PostgresqlDateSql::$replace property core/modules/views/src/Plugin/views/query/PostgresqlDateSql.php An array of PHP-to-PostgreSQL replacement patterns.
Renderer::replacePlaceholders function core/lib/Drupal/Core/Render/Renderer.php Replaces placeholders.
replace-me.txt file core/tests/Drupal/Tests/Composer/Plugin/Scaffold/fixtures/drupal-drupal-test-overwrite/replace-me.txt # File in drupal-drupal-test-overwrite that is replaced by a scaffold file.
ReplaceCommand class core/lib/Drupal/Core/Ajax/ReplaceCommand.php AJAX command for calling the jQuery replace() method.

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