Search for exists

  1. Search 7.x for exists
  2. Search 9.5.x for exists
  3. Search 10.3.x for exists
  4. Search 11.x for exists
  5. Other projects
Title Object type File name Summary
FileFieldTestBase::assertFileExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file exists physically on disk.
FileFieldTestBase::assertFileNotExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file does not exist on disk.
FileFieldTestBaseTrait::assertFileExists function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/FileFieldTestBaseTrait.php Asserts that a file exists physically on disk.
FileFieldTestBaseTrait::assertFileNotExists function core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/FileFieldTestBaseTrait.php Asserts that a file does not exist on disk.
FileFieldValidateTest::testAssertFileExistsDeprecation function core/modules/file/tests/src/Functional/FileFieldValidateTest.php Tests deprecation of the assertFileExists and assertFileNotExists methods.
FileNotExistsException class core/lib/Drupal/Core/File/Exception/FileNotExistsException.php Exception thrown when a file is expected to exist but does not.
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
FILE_EXISTS_ERROR constant core/includes/file.inc Flag for dealing with existing files: Do nothing and return FALSE.
FILE_EXISTS_RENAME constant core/includes/file.inc Flag for dealing with existing files: Appends number until name is unique.
FILE_EXISTS_REPLACE constant core/includes/file.inc Flag for dealing with existing files: Replace the existing file.
FilterFormatFormBase::exists function core/modules/filter/src/FilterFormatFormBase.php Determines if the format already exists.
HelpTopicPluginManager::providerExists function core/modules/help_topics/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.
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
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.
LegacyAliasStorageTest::testAliasExists function core/tests/Drupal/KernelTests/Core/Path/LegacyAliasStorageTest.php @covers ::aliasExists
@expectedDeprecation \Drupal\Core\Path\AliasStorage is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the "path_alias.repository" service instead, or the entity storage handler for the…
LegacyAliasStorageTest::testLanguageAliasExists function core/tests/Drupal/KernelTests/Core/Path/LegacyAliasStorageTest.php @covers ::languageAliasExists
@expectedDeprecation \Drupal\Core\Path\AliasStorage is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use the "path_alias.repository" service instead, or the entity storage handler for the…
LegacyStateFileExists class core/modules/migrate_drupal/tests/src/Kernel/LegacyStateFileExists.php Extends StateFileExists to test with deprecated modules.
LegacyStateFileExists.php file core/modules/migrate_drupal/tests/src/Kernel/LegacyStateFileExists.php
LegacyStateFileExists::$excludeDeprecated property core/modules/migrate_drupal/tests/src/Kernel/LegacyStateFileExists.php Flag to exclude deprecated modules from the tests.
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.
ModuleHandler::moduleExists function core/lib/Drupal/Core/Extension/ModuleHandler.php Determines whether a given module is enabled.
ModuleHandlerInterface::moduleExists function core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php Determines whether a given module is enabled.
ModuleHandlerTest::testModuleExists function core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php Test module exists returns correct module status.

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