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
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
Cron::$accountSwitcher property core/lib/Drupal/Core/Cron.php The account switcher service.
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
DummyQueryTrait::count 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::count function core/modules/migrate/src/Plugin/migrate/source/EmptySource.php Gets the source count.
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 Test 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.
EntityTranslationSettings::count function core/modules/content_translation/src/Plugin/migrate/source/d7/EntityTranslationSettings.php Gets the source count.
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
FetchTest::testRowCount function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests that rowCount() throws exception on SELECT query.
FieldableEntityStorageInterface::countFieldData function core/lib/Drupal/Core/Entity/FieldableEntityStorageInterface.php Determines the number of entities with values for a given field.
FieldCounterTest class core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php Tests the Drupal\views\Plugin\views\field\Counter handler.
FieldCounterTest class core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php Tests the display of counter field.
FieldCounterTest.php file core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php
FieldCounterTest.php file core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php
FieldCounterTest::$defaultTheme property core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php The theme to install as the default for testing.
FieldCounterTest::$modules property core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php Modules to enable.
FieldCounterTest::$modules property core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php The modules that need to be installed for this test.
FieldCounterTest::$testViews property core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php Views used by this test.
FieldCounterTest::$testViews property core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php The views that are used by this test.
FieldCounterTest::$view property core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php
FieldCounterTest::setUp function core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php
FieldCounterTest::testExcludedTitleTokenDisplay function core/modules/rest/tests/src/Functional/Views/FieldCounterTest.php Tests the display of an excluded title field when used as a token.
FieldCounterTest::testPager function core/modules/views/tests/src/Kernel/Handler/FieldCounterTest.php Tests the counter field when using a pager.

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