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
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.
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::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 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

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