Search for exists

  1. Search 7.x for exists
  2. Search 9.5.x for exists
  3. Search 8.9.x for exists
  4. Search 10.3.x for exists
  5. Other projects
Title Object type File name Summary
FileNotExistsException.php file core/lib/Drupal/Core/File/Exception/FileNotExistsException.php
FileReadOnlyStorage::exists function core/lib/Drupal/Component/PhpStorage/FileReadOnlyStorage.php Checks whether the PHP code exists in storage.
FileStorage::exists function core/lib/Drupal/Core/Config/FileStorage.php Returns whether a configuration object exists.
FileStorage::exists function core/lib/Drupal/Component/PhpStorage/FileStorage.php Checks whether the PHP code exists in storage.
FileSystemInterface::EXISTS_ERROR constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Do nothing and return FALSE.
FileSystemInterface::EXISTS_RENAME constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Appends number until name is unique.
FileSystemInterface::EXISTS_REPLACE constant core/lib/Drupal/Core/File/FileSystemInterface.php Flag for dealing with existing files: Replace the existing file.
FileSystemTest::testCopyFailureIfFileAlreadyExists function core/tests/Drupal/KernelTests/Core/File/FileSystemTest.php @covers ::copy
FileSystemTest::testEnsureFileExistsBeforeCopy function core/tests/Drupal/KernelTests/Core/File/FileSystemTest.php @covers ::copy
FileTestForm::fileExistsFromName function core/modules/file/tests/file_test/src/Form/FileTestForm.php Get a FileExists enum from its name.
FileTestSaveUploadFromForm::fileExistsFromName function core/modules/file/tests/file_test/src/Form/FileTestSaveUploadFromForm.php Get a FileExists enum from its name.
FilterFormatFormBase::exists function core/modules/filter/src/FilterFormatFormBase.php Determines if the format already exists.
GenerateThemeTest::assertThemeExists function core/tests/Drupal/Tests/Core/Command/GenerateThemeTest.php Asserts the theme exists. Returns the parsed *.info.yml file.
GenerateThemeTest::assertThemeExists function core/tests/Drupal/BuildTests/Command/GenerateThemeTest.php Asserts the theme exists. Returns the parsed *.info.yml file.
GenericTestExistsTest class core/tests/Drupal/Tests/Core/Extension/GenericTestExistsTest.php Tests that the Generic module test exists for all modules.
GenericTestExistsTest.php file core/tests/Drupal/Tests/Core/Extension/GenericTestExistsTest.php
GenericTestExistsTest::$modulesNoTest property core/tests/Drupal/Tests/Core/Extension/GenericTestExistsTest.php Lists module that do not require a Generic test.
GenericTestExistsTest::testGenericTestExists function core/tests/Drupal/Tests/Core/Extension/GenericTestExistsTest.php Tests that the Generic module test exists for all modules.
HelpTopicPluginManager::providerExists function core/modules/help/src/HelpTopicPluginManager.php Determines if the provider of a definition exists.
HighWaterTest::assertNodeExists function core/modules/migrate/tests/src/Kernel/HighWaterTest.php Assert that node with given title exists.
HighWaterTest::nodeExists function core/modules/migrate/tests/src/Kernel/HighWaterTest.php Checks if node with given title exists.
ImageStyleDownloadController::sourceImageExists function core/modules/image/src/Controller/ImageStyleDownloadController.php Checks whether the provided source image exists.
InstallStorage::exists function core/lib/Drupal/Core/Config/InstallStorage.php Returns whether a configuration object exists.
ItemList::offsetExists function core/lib/Drupal/Core/TypedData/Plugin/DataType/ItemList.php
JSWebAssert::statusMessageExistsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message exists after wait.
JSWebAssert::statusMessageNotExistsAfterWait function core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php Asserts that a status message does not exist after wait.
KeyValueStoreExpirableInterface::setWithExpireIfNotExists function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreExpirableInterface.php Sets a value for a given key with a time to live if it does not yet exist.
KeyValueStoreInterface::setIfNotExists function core/lib/Drupal/Core/KeyValueStore/KeyValueStoreInterface.php Saves a value for a given key if it does not exist yet.
LayoutBuilderUiTest::assertHighlightNotExists function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderUiTest.php Waits for the dialog to close and confirms no highlights are present.
LayoutPluginManager::providerExists function core/lib/Drupal/Core/Layout/LayoutPluginManager.php Determines if the provider of a definition exists.
LegacyFileSystemTest::testCopyWithDeprecatedFileExists function core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php @covers ::copy
LegacyFileSystemTest::testGetDestinationFilenameWithDeprecatedFileExists function core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php @covers ::getDestinationFilename
LegacyFileSystemTest::testMoveWithDeprecatedFileExists function core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php @covers ::move
LegacyFileSystemTest::testSaveDataWithDeprecatedFileExists function core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php @covers ::saveData
ListStringItem::exists function core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php Checks for existing keys for allowed values.
MakeUniqueBase::exists function core/modules/migrate/src/Plugin/migrate/process/MakeUniqueBase.php This is a query checking the existence of some value.
MakeUniqueEntityField::exists function core/modules/migrate/src/Plugin/migrate/process/MakeUniqueEntityField.php This is a query checking the existence of some value.
ManagedStorage::exists function core/lib/Drupal/Core/Config/ManagedStorage.php Returns whether a configuration object exists.
MatcherDumper::ensureTableExists function core/lib/Drupal/Core/Routing/MatcherDumper.php Checks if the tree table exists and create it if not.
MediaLibraryTestBase::assertElementExistsAfterWait function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Waits for the specified selector and returns it if not empty.
MediaLibraryTestBase::waitForFieldExists function core/modules/media_library/tests/src/FunctionalJavascript/MediaLibraryTestBase.php Checks for the existence of a field on page after wait.
MediaListBuilder::$thumbnailStyleExists property core/modules/media/src/MediaListBuilder.php Indicates whether the 'thumbnail' image style exists.
MemoryStorage::exists function core/lib/Drupal/Core/Config/MemoryStorage.php Returns whether a configuration object exists.
MemoryStorage::setIfNotExists function core/lib/Drupal/Core/KeyValueStore/MemoryStorage.php Saves a value for a given key if it does not exist yet.
MenuForm::menuNameExists function core/modules/menu_ui/src/MenuForm.php Returns whether a menu name already exists.
MenuTreeStorage::ensureTableExists function core/lib/Drupal/Core/Menu/MenuTreeStorage.php Checks if the tree table exists and create it if not.
MigrateFieldFormatterSettingsTest::assertComponentNotExists function core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php Asserts that a particular component is NOT included in a display.
MigrateFieldFormatterSettingsTest::assertComponentNotExists function core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php Asserts that a particular component is NOT included in a display.
MigrateSearchPageTest::testModuleExists function core/modules/search/tests/src/Kernel/Migrate/d7/MigrateSearchPageTest.php Tests that search page is only migrated for modules enabled on D8 site.
MigrateVocabularyEntityDisplayTest::assertComponentNotExists function core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php Asserts that a particular component is NOT included in a display.

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