Search for exists

  1. Search 7.x for exists
  2. Search 8.9.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
DatabaseStorage::ensureTableExists function core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.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::doSetWithExpireIfNotExists 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.
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.
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
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 Tests 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::assertFileEntryNotExists function core/modules/file/tests/src/Functional/FileFieldTestBase.php Asserts that a file does not exist in the database.
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
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.
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.

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