Search for replace

  1. Search 7.x for replace
  2. Search 9.5.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
CommentTokenReplaceTest class core/modules/comment/tests/src/Functional/CommentTokenReplaceTest.php Generates text using placeholders for dummy content to check 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::testAllModulesReplaced 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().
CopyTest::testExistingReplace function core/modules/file/tests/src/Kernel/CopyTest.php Test replacement when copying over a file that already exists.
DataFieldRow::$replacementAliases property core/modules/rest/src/Plugin/views/row/DataFieldRow.php Stores an array of prepared field aliases from options.
EntityResource::replaceRelationshipData function core/modules/jsonapi/src/Controller/EntityResource.php Updates the relationship of an entity.
ExtraFieldBlock::replaceFieldPlaceholder function core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php Replaces all placeholders for a given field.
FileFieldTestBase::replaceNodeFile function core/modules/file/tests/src/Functional/FileFieldTestBase.php Replaces a file within a node.
FileFieldTestBase::replaceNodeFile function core/modules/file/src/Tests/FileFieldTestBase.php Replaces a file within a node.
FileSystemInterface::EXISTS_REPLACE constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Replace the existing file.
FileTokenReplaceTest class core/modules/file/tests/src/Functional/FileTokenReplaceTest.php Generates text using placeholders for dummy content to check file token
replacement.
FileTokenReplaceTest.php file core/modules/file/tests/src/Functional/FileTokenReplaceTest.php
FileTokenReplaceTest::$defaultTheme property core/modules/file/tests/src/Functional/FileTokenReplaceTest.php The theme to install as the default for testing.
FileTokenReplaceTest::testFileTokenReplacement function core/modules/file/tests/src/Functional/FileTokenReplaceTest.php Creates a file, then tests the tokens generated from it.
FILE_EXISTS_REPLACE constant core/includes/file.inc 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.
ImageAdminStylesTest::testStyleReplacement function core/modules/image/tests/src/Functional/ImageAdminStylesTest.php Test deleting a style and choosing a replacement style.
ImageStyle::getReplacementID function core/modules/image/src/Entity/ImageStyle.php Returns the replacement ID.
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.
ImageStyleInterface::getReplacementID function core/modules/image/src/ImageStyleInterface.php Returns the replacement ID.
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.
InlineBlockPrivateFilesTest::replaceFileInBlock function core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php Replaces the file in the block with another one.
Interpolator::replacements function composer/Plugin/Scaffold/Interpolator.php Finds the tokens that exist in a message and builds a replacement array.
LayoutBuilderQuickEditTest::replaceLayoutBuilderFieldIdKeys function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderQuickEditTest.php Replaces the array keys with Layout Builder field IDs when needed.
MachineNameControllerTest::testMachineNameControllerWithInvalidReplacePattern function core/modules/system/tests/src/Unit/Transliteration/MachineNameControllerTest.php Tests the pattern validation.
ManageOptions::getLocationReplacements function composer/Plugin/Scaffold/ManageOptions.php Creates an interpolator for the 'locations' element.
MediaEmbed::replaceNodeContent function core/modules/media/src/Plugin/Filter/MediaEmbed.php Replaces the contents of a DOMNode.
MenuLinkContentUpdateTest::replaceUser1 function core/modules/menu_link_content/tests/src/Functional/Update/MenuLinkContentUpdateTest.php Replace User 1 with the user created here.
MoveTest::testExistingReplace function core/modules/file/tests/src/Kernel/MoveTest.php Test replacement when moving onto a file that already exists.
MoveTest::testExistingReplaceSelf function core/modules/file/tests/src/Kernel/MoveTest.php Test replacement when moving onto itself.
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 Generates text using placeholders for dummy content to check node token
replacement.

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