Search for conditions

  1. Search 7.x for conditions
  2. Search 9.5.x for conditions
  3. Search 8.9.x for conditions
  4. Search 10.3.x for conditions
  5. Other projects
Title Object type File name Summary
AssertPreconditionsTrait trait core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Asserts preconditions for tests to function properly.
AssertPreconditionsTrait.php file core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php
AssertPreconditionsTrait::assertNoFailureMarker function core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Asserts that there is no failure marker present.
AssertPreconditionsTrait::failIfUnmetPreConditions function core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Asserts universal test preconditions before any setup is done.
AssertPreconditionsTrait::getProjectRoot function core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Returns the absolute path of the project root.
AssertPreconditionsTrait::setUpBeforeClass function core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Invokes the test preconditions assertion before the first test is run.
AssertPreconditionsTrait::tearDown function core/modules/package_manager/tests/src/Traits/AssertPreconditionsTrait.php Invokes the test preconditions assertion after each test run.
Block::getVisibilityConditions function core/modules/block/src/Entity/Block.php Gets conditions for this block.
BlockAccessControlHandler::mergeCacheabilityFromConditions function core/modules/block/src/BlockAccessControlHandler.php Merges cacheable metadata from conditions onto the access result object.
BlockContentEntityReferenceSelectionTest::testFieldConditions function core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php Tests setting 'reusable' condition on different levels.
BlockContentEntityReferenceSelectionTest::testNoConditions function core/modules/block_content/tests/src/Kernel/BlockContentEntityReferenceSelectionTest.php Tests with no conditions set.
BlockInterface::getVisibilityConditions function core/modules/block/src/BlockInterface.php Gets conditions for this block.
Condition::$conditions property core/lib/Drupal/Core/Database/Query/Condition.php Array of conditions.
Condition::conditions function core/lib/Drupal/Core/Database/Query/Condition.php Gets the, possibly nested, list of conditions in this conditional clause.
ConditionAccessResolverTrait::resolveConditions function core/lib/Drupal/Core/Condition/ConditionAccessResolverTrait.php Resolves the given conditions based on the condition logic ('and'/'or').
ConditionAccessResolverTraitTest::providerTestResolveConditions function core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php
ConditionAccessResolverTraitTest::testResolveConditions function core/tests/Drupal/Tests/Core/Condition/ConditionAccessResolverTraitTest.php Tests the resolveConditions() method.
ConditionAggregateInterface::conditions function core/lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php Gets a complete list of all conditions in this conditional clause.
ConditionFundamentals::$conditions property core/lib/Drupal/Core/Entity/Query/ConditionFundamentals.php Array of conditions.
ConditionFundamentals::conditions function core/lib/Drupal/Core/Entity/Query/ConditionFundamentals.php
ConditionInterface::conditions function core/lib/Drupal/Core/Entity/Query/ConditionInterface.php Gets a complete list of all conditions in this conditional clause.
ConditionInterface::conditions function core/lib/Drupal/Core/Database/Query/ConditionInterface.php Gets the, possibly nested, list of conditions in this conditional clause.
ConditionTestDualUserTest::testConditions function core/tests/Drupal/KernelTests/Core/Plugin/Condition/ConditionTestDualUserTest.php Tests the dual user condition.
ConfigEntityQueryTest::testStringIdConditions function core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php Tests ID conditions.
EntityBundleConditionTest::testConditions function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleConditionTest.php Tests conditions.
FieldOrLanguageJoinTest::testLanguageBundleConditions function core/modules/views/tests/src/Kernel/Plugin/FieldOrLanguageJoinTest.php Tests the adding of conditions by the join plugin.
KernelTestBase::assertPostConditions function core/tests/Drupal/KernelTests/KernelTestBase.php
KernelTestBaseShutdownTest::assertPostConditions function core/tests/Drupal/KernelTests/KernelTestBaseShutdownTest.php
MenuTreeParameters::$conditions property core/lib/Drupal/Core/Menu/MenuTreeParameters.php The conditions used to restrict which links are loaded.
PathAliasTestTrait::loadPathAliasByConditions function core/tests/Drupal/Tests/Traits/Core/PathAliasTestTrait.php Gets the first result from a 'load by properties' storage call.
PhpTuf\ComposerStager\API\Precondition\Service\BeginnerPreconditionsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\BeginnerPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\CleanerPreconditionsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\CleanerPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\CommitterPreconditionsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\CommitterPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\CommonPreconditionsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\CommonPreconditions
PhpTuf\ComposerStager\API\Precondition\Service\StagerPreconditionsInterface service core/modules/package_manager/package_manager.services.yml PhpTuf\ComposerStager\Internal\Precondition\Service\StagerPreconditions
QueryConditionTrait::conditions function core/lib/Drupal/Core/Database/Query/QueryConditionTrait.php
QueryTest::$conditions property core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php The conditions to apply to the query.
RequestPathTest::testConditions function core/tests/Drupal/KernelTests/Core/Plugin/Condition/RequestPathTest.php Tests the request path condition.
ResponseStatusTest::providerTestConditions function core/tests/Drupal/KernelTests/Core/Plugin/Condition/ResponseStatusTest.php Provides test data for testConditions.
ResponseStatusTest::testConditions function core/tests/Drupal/KernelTests/Core/Plugin/Condition/ResponseStatusTest.php Tests the request path condition.
SearchKeywordsConditionsTest class core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php Verify the search without keywords set and extra conditions.
SearchKeywordsConditionsTest.php file core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php
SearchKeywordsConditionsTest::$defaultTheme property core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php The theme to install as the default for testing.
SearchKeywordsConditionsTest::$modules property core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php Modules to install.
SearchKeywordsConditionsTest::$searchingUser property core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php A user with permission to search and post comments.
SearchKeywordsConditionsTest::setUp function core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php
SearchKeywordsConditionsTest::testSearchKeywordsConditions function core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php Verify the keywords are captured and conditions respected.
SearchQuery::$conditions property core/modules/search/src/SearchQuery.php Conditions that are used for exact searches.
Select::havingConditions function core/lib/Drupal/Core/Database/Query/Select.php Gets a list of all conditions in the HAVING clause.
SelectCloneTest::testSelectConditionSubQueryCloning function core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php Tests that subqueries as value within conditions are cloned properly.

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