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
ConditionInterface::notExists function core/lib/Drupal/Core/Database/Query/ConditionInterface.php Sets a condition that the specified subquery returns no values.
ConfigSingleImportForm::$configExists property core/modules/config/src/Form/ConfigSingleImportForm.php If the config exists, this is that object. Otherwise, FALSE.
ConfigTestForm::exists function core/modules/config/tests/config_test/src/ConfigTestForm.php Determines if the entity already exists.
DatabaseBackend::ensureBinExists function core/lib/Drupal/Core/Cache/DatabaseBackend.php Check if the cache bin exists and create it if not.
DatabaseBackend::ensureTableExists function core/lib/Drupal/Core/Flood/DatabaseBackend.php Check if the flood table exists and create it if not.
DatabaseCacheTagsChecksum::ensureTableExists function core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php Check if the cache tags table exists and create it if not.
DatabaseLegacyTest::testDbFieldExists function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests deprecation of the db_field_exists() function.
DatabaseLegacyTest::testDbIndexExists function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests deprecation of the db_index_exists() function.
DatabaseLegacyTest::testDbTableExists function core/tests/Drupal/KernelTests/Core/Database/DatabaseLegacyTest.php Tests the db_table_exists() function.
DatabaseLockBackend::ensureTableExists function core/lib/Drupal/Core/Lock/DatabaseLockBackend.php Check if the semaphore table exists and create it if not.
DatabaseQueue::ensureTableExists function core/lib/Drupal/Core/Queue/DatabaseQueue.php Check if the table exists and create it if not.
DatabaseStorage::ensureTableExists function core/lib/Drupal/Core/Config/DatabaseStorage.php Check if the config table exists and create it if not.
DatabaseStorage::exists function core/lib/Drupal/Core/Config/DatabaseStorage.php Returns whether a configuration object exists.
DatabaseStorage::setIfNotExists function core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php Saves a value for a given key if it does not exist yet.
DatabaseStorageExpirable::setWithExpireIfNotExists function core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php Sets a value for a given key with a time to live if it does not yet exist.
DataDefinition::offsetExists function core/lib/Drupal/Core/TypedData/DataDefinition.php This is for BC support only.
@todo: Remove in https://www.drupal.org/node/1928868.
DateFormatFormBase::exists function core/modules/system/src/Form/DateFormatFormBase.php Checks for an existing date format.
db_field_exists function core/includes/database.inc Checks if a column exists in the given table.
db_index_exists function core/includes/database.inc Checks if an index exists in the given table.
db_table_exists function core/includes/database.inc Checks if a table exists.
DefaultPluginManager::providerExists function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php Determines if the provider of a definition exists.
DefaultPluginManagerTest::testProviderExists function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php @covers ::findDefinitions
@covers ::extractProviderFromDefinition
Dependency::offsetExists function core/lib/Drupal/Core/Extension/Dependency.php
DeprecatedArray::offsetExists function core/lib/Drupal/Component/Utility/DeprecatedArray.php
DocParser::$classExists property core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php This hashmap is used internally to cache results of class_exists()
look-ups.
DocParser::classExists function core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php Attempts to check if a class exists or not. This never goes through the PHP autoloading mechanism
but uses the {@link AnnotationRegistry} to load classes.
Drupal6SqlBaseTest::testDrupal6ModuleExists function core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php Tests for Drupal6SqlBase::moduleExists().
DrupalSqlBase::moduleExists function core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php Checks if a given module is enabled in the source Drupal database.
DrupalStandardsListenerTrait::classExists function core/tests/Drupal/Tests/Listeners/DrupalStandardsListenerTrait.php Helper method to check if a string names a valid class or trait.
EntityDisplayModeFormBase::exists function core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php Determines if the display mode already exists.
EntityExists class core/modules/migrate/src/Plugin/migrate/process/EntityExists.php This plugin checks if a given entity exists.
EntityExists.php file core/modules/migrate/src/Plugin/migrate/process/EntityExists.php
EntityExists::$storage property core/modules/migrate/src/Plugin/migrate/process/EntityExists.php The entity storage.
EntityExists::create function core/modules/migrate/src/Plugin/migrate/process/EntityExists.php Creates an instance of the plugin.
EntityExists::transform function core/modules/migrate/src/Plugin/migrate/process/EntityExists.php Performs the associated process.
EntityExists::__construct function core/modules/migrate/src/Plugin/migrate/process/EntityExists.php EntityExists constructor.
EntityExistsTest class core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php Tests the EntityExists process plugin.
EntityExistsTest.php file core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php
EntityExistsTest::$modules property core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php Modules to enable.
EntityExistsTest::setUp function core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php
EntityExistsTest::testEntityExists function core/modules/migrate/tests/src/Kernel/Plugin/EntityExistsTest.php Test the EntityExists plugin.
EntityResource::entityExists function core/modules/jsonapi/src/Controller/EntityResource.php Checks if the given entity exists.
ExtensionList::exists function core/lib/Drupal/Core/Extension/ExtensionList.php Determines if an extension exists in the filesystem.
FieldStorageAddForm::fieldNameExists function core/modules/field_ui/src/Form/FieldStorageAddForm.php Checks if a field machine name is taken.
FileExistsException class core/lib/Drupal/Core/File/Exception/FileExistsException.php Exception thrown when a file unexpectedly exists.
FileExistsException.php file core/lib/Drupal/Core/File/Exception/FileExistsException.php
FileFieldTestBase::assertFileEntryExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file exists in the database.
FileFieldTestBase::assertFileEntryExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file exists in the database.
FileFieldTestBase::assertFileEntryNotExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file does not exist in the database.
FileFieldTestBase::assertFileEntryNotExists function core/modules/file/src/Tests/FileFieldTestBase.php Asserts that a file does not exist in the database.

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