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 11.x for conditions
  5. Other projects
Title Object type File name Summary
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.
CKEditor5PluginDefinition::getConditions function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Gets the list of conditions to enable this plugin.
CKEditor5PluginDefinition::hasConditions function core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php Whether this plugin has conditions.
ckeditor5_plugin_conditions_test.ckeditor5.yml file core/modules/ckeditor5/tests/modules/ckeditor5_plugin_conditions_test/ckeditor5_plugin_conditions_test.ckeditor5.yml core/modules/ckeditor5/tests/modules/ckeditor5_plugin_conditions_test/ckeditor5_plugin_conditions_test.ckeditor5.yml
ckeditor5_plugin_conditions_test.info.yml file core/modules/ckeditor5/tests/modules/ckeditor5_plugin_conditions_test/ckeditor5_plugin_conditions_test.info.yml core/modules/ckeditor5/tests/modules/ckeditor5_plugin_conditions_test/ckeditor5_plugin_conditions_test.info.yml
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
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/Database/Query/ConditionInterface.php Gets the, possibly nested, list of conditions in this conditional clause.
ConditionInterface::conditions function core/lib/Drupal/Core/Entity/Query/ConditionInterface.php Gets a complete list of all 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.
DrupalAspectsOfCKEditor5Plugin::$conditions property core/modules/ckeditor5/src/Annotation/DrupalAspectsOfCKEditor5Plugin.php List of conditions to enable this plugin.
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
LanguageConditionTest::testConditions function core/modules/language/tests/src/Kernel/Condition/LanguageConditionTest.php Tests the language condition.
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.
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
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
SelectCloneTest::testSelectConditionSubQueryCloning function core/tests/Drupal/KernelTests/Core/Database/SelectCloneTest.php Tests that subqueries as value within conditions are cloned properly.
SelectComplexTest::testNestedConditions function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Confirms that we can properly nest conditional clauses.
SelectExtender::conditions function core/lib/Drupal/Core/Database/Query/SelectExtender.php
SelectExtender::havingConditions function core/lib/Drupal/Core/Database/Query/SelectExtender.php
SelectInterface::havingConditions function core/lib/Drupal/Core/Database/Query/SelectInterface.php Gets a list of all conditions in the HAVING clause.
SelectSubqueryTest::testConditionSubquerySelect function core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php Tests that we can use a subquery with an IN operator in a WHERE clause.
SelectSubqueryTest::testConditionSubquerySelect2 function core/tests/Drupal/KernelTests/Core/Database/SelectSubqueryTest.php Tests we can use a subquery with a relational operator in a WHERE clause.

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