Search for count

  1. Search 7.x for count
  2. Search 9.5.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
AccountSwitcher::switchTo function core/lib/Drupal/Core/Session/AccountSwitcher.php Safely switches to another account.
AccountSwitcher::__construct function core/lib/Drupal/Core/Session/AccountSwitcher.php Constructs a new AccountSwitcher.
AccountSwitcherInterface interface core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Defines an interface for a service for safe account switching.
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
AggregatorTestBase::getDefaultFeedItemCount function core/modules/aggregator/tests/src/Functional/AggregatorTestBase.php Returns the count of the randomly created feed array.
AggregatorTestBase::getDefaultFeedItemCount function core/modules/aggregator/src/Tests/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/install/block.block.bartik_account_menu.yml core/profiles/standard/config/install/block.block.bartik_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.
BlockPlaceEventSubscriber::$account property core/modules/block_place/src/EventSubscriber/BlockPlaceEventSubscriber.php The current user.
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.
CacheTagsChecksumTrait::getTagInvalidationCounts function core/lib/Drupal/Core/Cache/CacheTagsChecksumTrait.php Fetches invalidation counts for cache tags.
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.
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::$account property core/modules/comment/src/Tests/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.
CommentTestBase::$account2 property core/modules/comment/src/Tests/Views/CommentTestBase.php A second normal user that will author a node for $account to comment on.
CommentVariable::count function core/modules/comment/src/Plugin/migrate/source/d6/CommentVariable.php Gets the source count.
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.
ConfigTranslationController::$account property core/modules/config_translation/src/Controller/ConfigTranslationController.php The current user.
ConfigTranslationUiTest::testAccountSettingsConfigurationTranslation function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Tests the account settings translation interface.

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