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
CountryManager::getStandardList function core/lib/Drupal/Core/Locale/CountryManager.php Get an array of all two-letter country code => country name pairs.
CountryManager::__construct function core/lib/Drupal/Core/Locale/CountryManager.php Constructor.
CountryManagerInterface interface core/lib/Drupal/Core/Locale/CountryManagerInterface.php Defines a common interface for country managers.
CountryManagerInterface.php file core/lib/Drupal/Core/Locale/CountryManagerInterface.php
CountryManagerInterface::getList function core/lib/Drupal/Core/Locale/CountryManagerInterface.php Returns a list of country code => country name pairs.
country_manager service core/core.services.yml Drupal\Core\Locale\CountryManager
CredentialFormTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php Gets the expected number of entities per entity type after migration.
CredentialFormTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/CredentialFormTest.php Gets expected number of entities per entity after incremental migration.
Cron::$accountSwitcher property core/lib/Drupal/Core/Cron.php The account switcher service.
CronTest::REQUEUE_COUNT constant core/tests/Drupal/Tests/Core/CronTest.php
CurrentUserContext::$account property core/modules/user/src/ContextProvider/CurrentUserContext.php The current user.
Data::$count property core/modules/jsonapi/src/JsonApiResource/Data.php Holds the total count of entities.
Data::count function core/modules/jsonapi/src/JsonApiResource/Data.php Returns the number of entities.
Data::getTotalCount function core/modules/jsonapi/src/JsonApiResource/Data.php
Data::setTotalCount function core/modules/jsonapi/src/JsonApiResource/Data.php
DatabaseCacheTagsChecksum::getTagInvalidationCounts function core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php Fetches invalidation counts for cache tags.
DateFormatter::$country property core/lib/Drupal/Core/Datetime/DateFormatter.php
DateFormatter::country function core/lib/Drupal/Core/Datetime/DateFormatter.php Returns the default country from config.
DbLogTest::getTypeCount function core/modules/dblog/tests/src/Functional/DbLogTest.php Gets the count of database log entries by database log event type.
DbUpdateController::$account property core/modules/system/src/Controller/DbUpdateController.php The current user.
DefaultAccessCheckTest::$account property core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php The mocked account.
DefaultLazyPluginCollectionTest::testCount function core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php @covers ::count
DefaultMenuLinkTreeManipulators::$account property core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php The current user.
DefaultSelection::countReferenceableEntities function core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php Counts entities that are referenceable.
DeleteMultipleFormTest::$account property core/tests/Drupal/FunctionalTests/Entity/DeleteMultipleFormTest.php The current user.
DeprecatedArray::count function core/lib/Drupal/Component/Utility/DeprecatedArray.php
DoubleSlashTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php Gets the expected number of entities per entity type after migration.
DoubleSlashTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/d7/DoubleSlashTest.php Gets expected number of entities per entity after incremental migration.
DummyQueryTrait::doCount function core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php
EditModeTest::getTabbableElementsCount function core/modules/contextual/tests/src/FunctionalJavascript/EditModeTest.php Gets the number of elements that are tabbable.
EmbeddedDataSource::count function core/modules/migrate/src/Plugin/migrate/source/EmbeddedDataSource.php Gets the source count.
EmptySource::doCount function core/modules/migrate/src/Plugin/migrate/source/EmptySource.php Gets the source count.
EntityContentBase::$accountSwitcher property core/modules/migrate/src/Plugin/migrate/destination/EntityContentBase.php The account switcher service.
EntityQueryRelationshipTest::$accounts property core/tests/Drupal/KernelTests/Core/Entity/EntityQueryRelationshipTest.php User entities.
EntityQueryTest::testConditionCount function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Tests that condition count returns expected number of conditions.
EntityQueryTest::testCount function core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php Tests that count queries are separated across entity types.
EntityResource::getCollectionCountQuery function core/modules/jsonapi/src/Controller/EntityResource.php Gets a basic query for a collection count.
EntityRevisionTest::$accountSwitcher property core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php A mock account switcher.
EntityTestBundleClass::$postCreateCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The number of times static::postCreate() was called.
EntityTestBundleClass::$postDeleteCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The number of times static::postDelete() was called.
EntityTestBundleClass::$postLoadCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The number of times static::postLoad() was called.
EntityTestBundleClass::$postLoadEntitiesCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The size of the $entities array passed to each invocation of postLoad().
EntityTestBundleClass::$preCreateCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The number of times static::preCreate() was called.
EntityTestBundleClass::$preDeleteCount property core/modules/system/tests/modules/entity_test_bundle_class/src/Entity/EntityTestBundleClass.php The number of times static::preDelete() was called.
EntityTranslationSettings::doCount function core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php Gets the source count using countQuery().
EntityType::$label_count property core/lib/Drupal/Core/Entity/EntityType.php A definite singular/plural name of the type.
EntityType::getCountLabel function core/lib/Drupal/Core/Entity/EntityType.php Gets the label's definite article form for use with a count of entities.
EntityTypeInterface::getCountLabel function core/lib/Drupal/Core/Entity/EntityTypeInterface.php Gets the label's definite article form for use with a count of entities.
EntityTypeTest::testGetCountLabel function core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php @covers ::getCountLabel
EntityTypeTest::testGetCountLabelDefault function core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php @covers ::getCountLabel

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