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
SharedTempStore::setIfNotExists function core/lib/Drupal/Core/TempStore/SharedTempStore.php Stores a particular key/value pair only if the key doesn't already exist.
SharedTempStoreTest::testSetIfNotExists function core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php Tests the setIfNotExists() methods.
SharedTempStoreTest::testSetIfOwnerWhenNotExists function core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php Tests the setIfOwner() method when no key exists.
SortTest::testFileExists function core/tests/Drupal/Tests/PhpCs/SortTest.php Tests that the phpcs.xml.dist file exists.
StateFileExistsTest class core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php Tests that core modules have a migrate_drupal.yml file as needed.
StateFileExistsTest.php file core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php
StateFileExistsTest::$modules property core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php Modules to enable.
StateFileExistsTest::$stateFileRequired property core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php Modules that should have a migrate_drupal.yml file.
StateFileExistsTest::testMigrationState function core/modules/migrate_drupal/tests/src/Kernel/StateFileExistsTest.php Tests that the migrate_drupal.yml files exist as needed.
StorageInterface::exists function core/lib/Drupal/Core/Config/StorageInterface.php Returns whether a configuration object exists.
StorageReplaceDataWrapper::exists function core/modules/config/src/StorageReplaceDataWrapper.php Returns whether a configuration object exists.
StorageTestBase::testSetIfNotExists function core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php Tests the setIfNotExists() method.
StringLoader::exists function core/lib/Drupal/Core/Template/Loader/StringLoader.php
SwitchShortcutSet::exists function core/modules/shortcut/src/Form/SwitchShortcutSet.php Determines if a shortcut set exists already.
TemporaryArrayObjectThrowingExceptions::offsetExists function core/modules/jsonapi/src/Normalizer/Value/TemporaryArrayObjectThrowingExceptions.php Returns whether the requested index exists.
TestDrupal6SqlBase::moduleExistsWrapper function core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php Wrapper method to test protected method moduleExists().
TestLoader::exists function core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php
ThemeHandler::themeExists function core/lib/Drupal/Core/Extension/ThemeHandler.php Determines whether a given theme is installed.
ThemeHandlerInterface::themeExists function core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php Determines whether a given theme is installed.
ThemeRegistryLoaderTest::testLoaderReturnsFalseForExistsOnNonexistent function core/tests/Drupal/Tests/Core/Template/Loader/ThemeRegistryLoaderTest.php @covers ::findTemplate
TrackChangesTest::assertTermExists function core/modules/migrate/tests/src/Kernel/TrackChangesTest.php Assert that term with given name exists.
TrackChangesTest::termExists function core/modules/migrate/tests/src/Kernel/TrackChangesTest.php Checks if term with given name exists.
VocabularyForm::exists function core/modules/taxonomy/src/VocabularyForm.php Determines if the vocabulary already exists.
WebAssert::buttonExists function core/tests/Drupal/Tests/WebAssert.php Checks that specific button exists on the current page.
WebAssert::buttonNotExists function core/tests/Drupal/Tests/WebAssert.php Checks that the specific button does NOT exist on the current page.
WebAssert::cookieExists function core/tests/Drupal/Tests/WebAssert.php
WebAssert::elementAttributeExists function core/tests/Drupal/Tests/WebAssert.php
WebAssert::elementExists function core/tests/Drupal/Tests/WebAssert.php
WebAssert::elementNotExists function core/tests/Drupal/Tests/WebAssert.php
WebAssert::fieldExists function core/tests/Drupal/Tests/WebAssert.php
WebAssert::fieldNotExists function core/tests/Drupal/Tests/WebAssert.php
WebAssert::hiddenFieldExists function core/tests/Drupal/Tests/WebAssert.php Checks that specific hidden field exists.
WebAssert::hiddenFieldNotExists function core/tests/Drupal/Tests/WebAssert.php Checks that specific hidden field does not exist.
WebAssert::linkByHrefExists function core/tests/Drupal/Tests/WebAssert.php Passes if a link containing a given href (part) is found.
WebAssert::linkByHrefNotExists function core/tests/Drupal/Tests/WebAssert.php Passes if a link containing a given href (part) is not found.
WebAssert::linkExists function core/tests/Drupal/Tests/WebAssert.php Passes if a link with the specified label is found.
WebAssert::linkExistsExact function core/tests/Drupal/Tests/WebAssert.php Passes if a link with the exactly specified label is found.
WebAssert::linkNotExists function core/tests/Drupal/Tests/WebAssert.php Passes if a link with the specified label is not found.
WebAssert::linkNotExistsExact function core/tests/Drupal/Tests/WebAssert.php Passes if a link with the exactly specified label is not found.
WebAssert::optionExists function core/tests/Drupal/Tests/WebAssert.php Checks that specific option in a select field exists on the current page.
WebAssert::optionNotExists function core/tests/Drupal/Tests/WebAssert.php Checks that an option in a select field does NOT exist on the current page.
WebAssert::responseHeaderExists function core/tests/Drupal/Tests/WebAssert.php Asserts that the current response header has a specific entry.
WebAssert::selectExists function core/tests/Drupal/Tests/WebAssert.php Checks that specific select field exists on the current page.
WebAssert::statusMessageExists function core/tests/Drupal/Tests/WebAssert.php Asserts that a status message exists.
WebAssert::statusMessageNotExists function core/tests/Drupal/Tests/WebAssert.php Asserts that a status message does not exist.
WebAssertArgumentsTest::testButtonExists function core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php @covers ::buttonExists
WebAssertArgumentsTest::testButtonNotExists function core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php @covers ::buttonNotExists
WebAssertArgumentsTest::testCookieExists function core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php @covers ::cookieExists
WebAssertArgumentsTest::testElementAttributeExists function core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php @covers ::elementAttributeExists
WebAssertArgumentsTest::testElementExists function core/tests/Drupal/Tests/Core/Assert/WebAssertArgumentsTest.php @covers ::elementExists

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