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 11.x for exists
  5. Other projects
Title Object type File name Summary
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 @covers ::extensionExists
@covers ::tableExists
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.
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::$allowFallback property core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Whether or not to consider fallback plugin IDs as valid.
PluginExistsConstraint::$interface property core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Optional name of the interface that the plugin must implement.
PluginExistsConstraint::$invalidInterfaceMessage property core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php The error message if a plugin does not implement the expected interface.
PluginExistsConstraint::$manager property core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php The ID of the plugin manager service.
PluginExistsConstraint::$unknownPluginMessage property core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php The error message if a plugin does not exist.
PluginExistsConstraint::create function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Creates an instance of the plugin.
PluginExistsConstraint::getDefaultOption function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php
PluginExistsConstraint::getRequiredOptions function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php
PluginExistsConstraint::__construct function core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php Constructs a PluginExistsConstraint.
PluginExistsConstraintTest class core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php @group Plugin
@group Validation
PluginExistsConstraintTest.php file core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php
PluginExistsConstraintTest::testMissingOption function core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php Tests missing option.
PluginExistsConstraintTest::testOption function core/tests/Drupal/Tests/Core/Plugin/PluginExistsConstraintTest.php Tests with different option keys.
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 @group Plugin
@group Validation
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.

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