Search for exists

  1. Search 7.x for exists
  2. Search 9.5.x for exists
  3. Search 8.9.x for exists
  4. Search 10.3.x for exists
  5. Search 11.x for exists
  6. Other projects
Title Object type File name Summary
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.
NonPublicSchemaTest::testExtensionExists function core/modules/pgsql/tests/src/Kernel/pgsql/NonPublicSchemaTest.php Tests extension exists.
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.
PhpTuf\ComposerStager\API\Precondition\Service\ActiveDirExistsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirExists
PhpTuf\ComposerStager\API\Precondition\Service\StagingDirExistsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirExists
PluginExistsConstraint class core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Checks if a plugin exists and optionally implements a particular interface.
PluginExistsConstraint.php file core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php
PluginExistsConstraint::create function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Creates an instance of the plugin.
PluginExistsConstraint::__construct function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Constructs a PluginExistsConstraint object.
PluginExistsConstraintTest class core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php Tests Drupal\Core\Plugin\Plugin\Validation\Constraint\PluginExistsConstraint.
PluginExistsConstraintTest.php file core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php
PluginExistsConstraintTest::testManagerOption function core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php Tests plugin is created when manager option is set to a valid service ID.
PluginExistsConstraintTest::testMissingOption function core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php Tests missing option.
PluginExistsConstraintValidator class core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraintValidator.php Validates the PluginExists constraint.
PluginExistsConstraintValidator.php file core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraintValidator.php
PluginExistsConstraintValidator::validate function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraintValidator.php
PluginExistsConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Plugin/PluginExistsConstraintValidatorTest.php Tests Plugin Exists Constraint Validator.
PluginExistsConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Plugin/PluginExistsConstraintValidatorTest.php
PluginExistsConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/PluginExistsConstraintValidatorTest.php Modules to install.
PluginExistsConstraintValidatorTest::testFallbackPluginIds function core/tests/Drupal/KernelTests/Core/Plugin/PluginExistsConstraintValidatorTest.php Tests that fallback plugin IDs can be considered valid or invalid.
PluginExistsConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Plugin/PluginExistsConstraintValidatorTest.php Tests validation of plugin existence.
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.
QueryInterface::notExists function core/lib/Drupal/Core/Entity/Query/QueryInterface.php Queries for an empty field.
ReadOnlyStorage::exists function core/lib/Drupal/Core/Config/ReadOnlyStorage.php Returns whether a configuration object exists.
Recipe::validateRecipeExists function core/lib/Drupal/Core/Recipe/Recipe.php Validates that a recipe exists.
RecipeConfigStorageWrapper::exists function core/lib/Drupal/Core/Recipe/RecipeConfigStorageWrapper.php Returns whether a configuration object exists.
RecipeConfigStorageWrapperTest::testLeftSideExists function core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php Validate that the first storage checks existence first.
RecipeConfigStorageWrapperTest::testNotExists function core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php Validate FALSE when neither storage contains a key.
RecipeConfigStorageWrapperTest::testRightSideExists function core/tests/Drupal/Tests/Core/Recipe/RecipeConfigStorageWrapperTest.php Validate that we fall back to the second storage.
RecipeMultipleModulesConfigStorage::exists function core/lib/Drupal/Core/Recipe/RecipeMultipleModulesConfigStorage.php Returns whether a configuration object exists.
RecipeMultipleModulesConfigStorageTest::testExists function core/tests/Drupal/Tests/Core/Recipe/RecipeMultipleModulesConfigStorageTest.php Tests exists() returns TRUE when config is in any directory.
RecipeOverrideConfigStorage::exists function core/lib/Drupal/Core/Recipe/RecipeOverrideConfigStorage.php Returns whether a configuration object exists.

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