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
ActionFormBase::exists function core/modules/action/src/Form/ActionFormBase.php Determines if the action already exists.
Attribute::offsetExists function core/lib/Drupal/Core/Template/Attribute.php
AttributeArray::offsetExists function core/lib/Drupal/Core/Template/AttributeArray.php
AttributeHelper::attributeExists function core/lib/Drupal/Core/Template/AttributeHelper.php Checks if the given attribute collection has an attribute.
AttributeHelperTest::providerTestAttributeExists function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php Provides tests data for testAttributeExists.
AttributeHelperTest::testAttributeExists function core/tests/Drupal/Tests/Core/Template/AttributeHelperTest.php @covers ::attributeExists
@dataProvider providerTestAttributeExists
BatchBuilderTest::testQueueExists function core/tests/Drupal/Tests/Core/Batch/BatchBuilderTest.php Tests queue class exists.
BatchStorage::ensureTableExists function core/lib/Drupal/Core/Batch/BatchStorage.php Check if the table exists and create it if not.
BigPipeTest::assertBigPipeNoJsCookieExists function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether a BigPipe no-JS cookie exists or not.
BigPipeTest::assertCookieExists function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether a cookie exists on the client or not.
BigPipeTest::assertSessionCookieExists function core/modules/big_pipe/tests/src/Functional/BigPipeTest.php Asserts whether a session cookie exists or not.
BlockRegionTest::testTransformSameThemeRegionExists function core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php Tests transforming a block with the same theme and an existing region.
BlockRegionTest::testTransformSameThemeRegionNotExists function core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockRegionTest.php Tests transforming a block with the same theme and a non-existent region.
BreakpointManager::providerExists function core/modules/breakpoint/src/BreakpointManager.php Determines if the provider of a definition exists.
BrowserTestBaseTest::testInvalidLinkExistsExact function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests linkExistsExact() functionality fail.
BrowserTestBaseTest::testInvalidLinkNotExistsExact function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests linkNotExistsExact() functionality fail.
BrowserTestBaseTest::testLinkExistsExact function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests linkExistsExact() functionality.
BrowserTestBaseTest::testLinkNotExistsExact function core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php Tests linkNotExistsExact() functionality.
CachedStorage::exists function core/lib/Drupal/Core/Config/CachedStorage.php Returns whether a configuration object exists.
CacheTestBase::assertCacheExists function core/modules/system/tests/src/Functional/Cache/CacheTestBase.php Asserts that a cache entry exists.
CacheTestBase::checkCacheExists function core/modules/system/tests/src/Functional/Cache/CacheTestBase.php Checks whether or not a cache entry exists.
cache_context.session.exists service core/core.services.yml Drupal\Core\Cache\Context\SessionExistsCacheContext
CommentFieldItemList::offsetExists function core/modules/comment/src/CommentFieldItemList.php
CommentNonNodeTest::commentExists function core/modules/comment/tests/src/Functional/CommentNonNodeTest.php Checks current page for specified comment.
CommentTestBase::commentExists function core/modules/comment/tests/src/Functional/CommentTestBase.php Checks current page for specified comment.
ComputedItemListTrait::offsetExists function core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
Condition::exists function core/lib/Drupal/Core/Database/Query/Condition.php Sets a condition that the specified subquery returns values.
Condition::exists function core/lib/Drupal/Core/Entity/Query/Sql/Condition.php Queries for the existence of a field.
Condition::exists function core/lib/Drupal/Core/Entity/Query/Null/Condition.php Queries for the existence of a field.
Condition::exists function core/lib/Drupal/Core/Config/Entity/Query/Condition.php Queries for the existence of a field.
Condition::notExists function core/lib/Drupal/Core/Entity/Query/Null/Condition.php Queries for the nonexistence of a field.
Condition::notExists function core/lib/Drupal/Core/Database/Query/Condition.php Sets a condition that the specified subquery returns no values.
Condition::notExists function core/lib/Drupal/Core/Entity/Query/Sql/Condition.php Queries for the nonexistence of a field.
Condition::notExists function core/lib/Drupal/Core/Config/Entity/Query/Condition.php Queries for the nonexistence of a field.
ConditionAggregate::exists function core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php Queries for the existence of a field.
ConditionAggregate::notExists function core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php Queries for the nonexistence of a field.
ConditionAggregateInterface::exists function core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php Queries for the existence of a field.
ConditionAggregateInterface::notExists function core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php Queries for the nonexistence of a field.
ConditionInterface::exists function core/lib/Drupal/Core/Entity/Query/ConditionInterface.php Queries for the existence of a field.
ConditionInterface::exists function core/lib/Drupal/Core/Database/Query/ConditionInterface.php Sets a condition that the specified subquery returns values.
ConditionInterface::notExists function core/lib/Drupal/Core/Database/Query/ConditionInterface.php Sets a condition that the specified subquery returns no values.
ConditionInterface::notExists function core/lib/Drupal/Core/Entity/Query/ConditionInterface.php Queries for the nonexistence of a field.
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.
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::doSetIfNotExists function core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php Saves a value for a given key if it does not exist yet.

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