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
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.
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.
MediaTest::assertContextMenuItemExists function core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php Asserts that a context menu item exists by aria-label attribute.
MediaTest::assertContextMenuItemNotExists function core/modules/ckeditor/tests/src/FunctionalJavascript/MediaTest.php Asserts that a context menu item does not exist by aria-label attribute.
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 Tests module exists returns correct module status.
MTimeProtectedFileStorage::exists function core/lib/Drupal/Component/PhpStorage/MTimeProtectedFileStorage.php Checks whether the PHP code exists in storage.
NegotiatorBase::ensureVersionExists function core/modules/jsonapi/src/Revisions/NegotiatorBase.php Helper method that ensures that a version exists.
NestedArray::keyExists function core/lib/Drupal/Component/Utility/NestedArray.php Determines whether a nested array contains the requested keys.
NestedArrayTest::testKeyExists function core/tests/Drupal/Tests/Component/Utility/NestedArrayTest.php Tests existence of array key.
NullStorage::exists function core/lib/Drupal/Core/Config/NullStorage.php Returns whether a configuration object exists.
NullStorageExpirable::setIfNotExists function core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php Saves a value for a given key if it does not exist yet.
NullStorageExpirable::setWithExpireIfNotExists function core/lib/Drupal/Core/KeyValueStore/NullStorageExpirable.php Sets a value for a given key with a time to live if it does not yet exist.
PathAliasTestTrait::assertPathAliasExists function core/tests/Drupal/Tests/Traits/Core/PathAliasTestTrait.php Asserts that a path alias exists in the storage.
PathAliasTestTrait::assertPathAliasNotExists function core/tests/Drupal/Tests/Traits/Core/PathAliasTestTrait.php Asserts that a path alias does not exist in the storage.
PhpStorageInterface::exists function core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php Checks whether the PHP code exists in storage.
ProviderFilterDecorator::$providerExists property core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php A callable for testing if a provider exists.
Query::existsAggregate function core/lib/Drupal/Core/Entity/Query/Null/Query.php Queries for the existence of a field.
Query::notExistsAggregate function core/lib/Drupal/Core/Entity/Query/Null/Query.php Queries for the nonexistence of a field.
QueryAggregate::existsAggregate function core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php Queries for the existence of a field.
QueryAggregate::notExistsAggregate function core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php Queries for the nonexistence of a field.
QueryAggregateInterface::existsAggregate function core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php Queries for the existence of a field.
QueryAggregateInterface::notExistsAggregate function core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php Queries for the nonexistence of a field.
QueryBase::exists function core/lib/Drupal/Core/Entity/Query/QueryBase.php Queries for a non-empty value on a field.
QueryBase::notExists function core/lib/Drupal/Core/Entity/Query/QueryBase.php Queries for an empty field.
QueryConditionTrait::exists function core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php
QueryConditionTrait::notExists function core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php
QueryInterface::exists function core/lib/Drupal/Core/Entity/Query/QueryInterface.php Queries for a non-empty value on a field.

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