Search for count

  1. Search 7.x for count
  2. Search 8.9.x for count
  3. Search 10.3.x for count
  4. Search 11.x for count
  5. Other projects
Title Object type File name Summary
AccountSwitcherInterface.php file core/lib/Drupal/Core/Session/AccountSwitcherInterface.php
AccountSwitcherInterface::switchBack function core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Reverts to a previous account after switching.
AccountSwitcherInterface::switchTo function core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Safely switches to another account.
AccountSwitcherTest class core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php Test case for account switching.
AccountSwitcherTest.php file core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
AccountSwitcherTest::testAccountSwitching function core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
account_switcher service core/core.services.yml Drupal\Core\Session\AccountSwitcher
AdminUiTest::getAjaxResponseCount function core/modules/ckeditor5/tests/src/FunctionalJavascript/AdminUiTest.php Gets the Drupal AJAX response count observed on this page.
AggregatorTestBase::getDefaultFeedItemCount function core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php Returns the count of the randomly created feed array.
ArgumentValidateTest::$account property core/modules/user/tests/src/Kernel/Views/ArgumentValidateTest.php A user for this test.
AttributeTest::getXPathResultCount function core/tests/Drupal/Tests/Core/Template/AttributeTest.php Counts the occurrences of the given XPath query in a given HTML snippet.
AuditResult::count function core/modules/migrate/src/Audit/AuditResult.php Implements \Countable::count() for Twig template compatibility.
AuthenticationSubscriber::$accountProxy property core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php Account proxy.
BigPipeTestController::counter function core/modules/big_pipe/tests/modules/big_pipe_test/src/BigPipeTestController.php #lazy_builder callback; returns the current count.
block.block.bartik_account_menu.yml file core/profiles/standard/config/optional/block.block.bartik_account_menu.yml core/profiles/standard/config/optional/block.block.bartik_account_menu.yml
block.block.olivero_account_menu.yml file core/modules/system/tests/modules/olivero_test/config/optional/block.block.olivero_account_menu.yml core/modules/system/tests/modules/olivero_test/config/optional/block.block.olivero_account_menu.yml
block.block.olivero_account_menu.yml file core/themes/olivero/config/optional/block.block.olivero_account_menu.yml core/themes/olivero/config/optional/block.block.olivero_account_menu.yml
block.block.testing_theme_required_blocks_account_menu.yml file core/profiles/testing_themes_blocks/themes/testing_theme_required_blocks/config/install/block.block.testing_theme_required_blocks_account_menu.yml core/profiles/testing_themes_blocks/themes/testing_theme_required_blocks/config/install/block.block.testing_theme_required_blocks_account_menu.yml
block.block.umami_account_menu.yml file core/profiles/demo_umami/config/install/block.block.umami_account_menu.yml core/profiles/demo_umami/config/install/block.block.umami_account_menu.yml
BlockComponentRenderArrayTest::$account property core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php The current user.
BlockContentBlock::$account property core/modules/block_content/src/Plugin/Block/BlockContentBlock.php The Drupal account to use for checking for access to block.
BlockContentFieldFilterTest::assertPageCounts function core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php Asserts that the given block_content translation counts are correct.
BookBreadcrumbBuilder::$account property core/modules/book/src/BookBreadcrumbBuilder.php The current user account.
BookOutlineStorage::countOriginalLinkChildren function core/modules/book/src/BookOutlineStorage.php Count the number of original link children.
BookOutlineStorageInterface::countOriginalLinkChildren function core/modules/book/src/BookOutlineStorageInterface.php Count the number of original link children.
Broken::countReferenceableEntities function core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/Broken.php Counts entities that are referenceable.
BrowserHtmlDebugTrait::$htmlOutputCounter property core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php Counter for HTML output logging.
BrowserHtmlDebugTrait::$htmlOutputCounterStorage property core/tests/Drupal/Tests/BrowserHtmlDebugTrait.php Counter storage for HTML output logging.
CacheableEmbeddedDataSource::count function core/modules/migrate/tests/modules/migrate_cache_counts_test/src/Plugin/migrate/source/CacheableEmbeddedDataSource.php Gets the source count.
CacheableEmbeddedDataSource::doCount function core/modules/migrate/tests/modules/migrate_cache_counts_test/src/Plugin/migrate/source/CacheableEmbeddedDataSource.php Gets the source count.
CacheTagsChecksumTrait::getTagInvalidationCounts function core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php Fetches invalidation counts for cache tags.
CKEditor5FragmentLinkTest::$account property core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php The admin user.
CKEditorIntegrationTest::$account property core/modules/ckeditor/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php The account.
CommentFieldFilterTest::assertPageCounts function core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php Asserts that the given comment translation counts are correct.
CommentManager::getCountNewComments function core/modules/comment/src/CommentManager.php Returns the number of new comments available on a given entity for a user.
CommentManagerInterface::getCountNewComments function core/modules/comment/src/CommentManagerInterface.php Returns the number of new comments available on a given entity for a user.
CommentSelection::countReferenceableEntities function core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php Counts entities that are referenceable.
CommentStatistics::getMaximumCount function core/modules/comment/src/CommentStatistics.php Find the maximum number of comments for the given entity type.
CommentStatisticsInterface::getMaximumCount function core/modules/comment/src/CommentStatisticsInterface.php Find the maximum number of comments for the given entity type.
CommentStorage::getUnapprovedCount function core/modules/comment/src/CommentStorage.php Returns the number of unapproved comments.
CommentStorageInterface::getUnapprovedCount function core/modules/comment/src/CommentStorageInterface.php Returns the number of unapproved comments.
CommentTestBase::$account property core/modules/comment/tests/src/Functional/Views/CommentTestBase.php A normal user with permission to post comments (without approval).
CommentTestBase::$account2 property core/modules/comment/tests/src/Functional/Views/CommentTestBase.php A second normal user that will author a node for $account to comment on.
ComputedItemListTrait::count function core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
Condition::count function core/lib/Drupal/Core/Database/Query/Condition.php Implements Countable::count().
ConditionFundamentals::count function core/lib/Drupal/Core/Entity/Query/ConditionFundamentals.php
ConditionInterface::count function core/lib/Drupal/Core/Entity/Query/ConditionInterface.php Implements \Countable::count().
ConfigEntityQueryTest::testCount function core/tests/Drupal/KernelTests/Core/Entity/ConfigEntityQueryTest.php Tests count query.
ConfigImporterTest::testUninstallThemeIncrementsCount function core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php Tests that uninstall a theme in config import correctly imports all config.
ConfigTranslationController::$account property core/modules/config_translation/src/Controller/ConfigTranslationController.php The current user.

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