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
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().
CopyTest::testExistingReplace function core/modules/file/tests/src/Kernel/CopyTest.php Tests 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.
DynamicPluginConfigWithCsrfTokenUrlTrait::getUrlWithReplacedCsrfTokenPlaceholder function core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/DynamicPluginConfigWithCsrfTokenUrlTrait.php Gets the given URL with all placeholders replaced.
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.
FileRepositoryTest::testExistingReplace function core/modules/file/tests/src/Kernel/FileRepositoryTest.php Tests writeData() when replacing an existing file.
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 Tests 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.
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.
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/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.
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.
MoveTest::testExistingReplace function core/modules/file/tests/src/Kernel/MoveTest.php Tests replacement when moving onto a file that already exists.
MoveTest::testExistingReplaceSelf function core/modules/file/tests/src/Kernel/MoveTest.php Tests 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.

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