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
SearchPage::doCount function core/modules/search/src/Plugin/migrate/source/d7/SearchPage.php
SearchQuery::$relevance_count property core/modules/search/src/SearchQuery.php The number of 'i.relevance' occurrences in score expressions.
SearchQuery::countQuery function core/modules/search/src/SearchQuery.php Builds the default count query for SearchQuery.
SectionListTrait::count function core/modules/layout_builder/src/SectionListTrait.php #[\ReturnTypeWillChange]
SectionRenderTest::$account property core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php The current user.
SectionStorageBase::count function core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php #[\ReturnTypeWillChange]
Select::countQuery function core/lib/Drupal/Core/Database/Query/Select.php
Select::prepareCountQuery function core/lib/Drupal/Core/Database/Query/Select.php Prepares a count query from the current query object.
SelectComplexTest::testCountQuery function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests that we can generate a count query from a built query.
SelectComplexTest::testCountQueryDistinct function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests that we can generate a count query from a query with distinct.
SelectComplexTest::testCountQueryFieldRemovals function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests that countQuery properly removes fields and expressions.
SelectComplexTest::testCountQueryGroupBy function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests that we can generate a count query from a query with GROUP BY.
SelectComplexTest::testCountQueryRemovals function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests that countQuery removes 'all_fields' statements and ordering clauses.
SelectComplexTest::testHavingCountQuery function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests having queries.
SelectComplexTest::testSelectWithRowCount function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests that rowCount() throws exception on SELECT query.
SelectExtender::countQuery function core/lib/Drupal/Core/Database/Query/SelectExtender.php
SelectInterface::countQuery function core/lib/Drupal/Core/Database/Query/SelectInterface.php Get the equivalent COUNT query of this query as a new query object.
SelectionInterface::countReferenceableEntities function core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php Counts entities that are referenceable.
SelectTest::testInvalidSelectCount function core/tests/Drupal/KernelTests/Core/Database/SelectTest.php Tests that an invalid count query throws an exception.
SelectTest::testUnionCount function core/tests/Drupal/KernelTests/Core/Database/SelectTest.php Tests that we can get a count query for a UNION Select query.
ShortcutSetStorage::countAssignedUsers function core/modules/shortcut/src/ShortcutSetStorage.php
ShortcutSetStorageInterface::countAssignedUsers function core/modules/shortcut/src/ShortcutSetStorageInterface.php Get the number of users who have this set assigned to them.
SiteConfigureForm::$countryManager property core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php The country manager.
Some::useCountQuery function core/modules/views/src/Plugin/views/pager/Some.php
SourcePluginBase::$cacheCounts property core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php Whether this instance should cache the source count.
SourcePluginBase::$skipCount property core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php Whether this instance should not attempt to count the source.
SourcePluginBase::count function core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php Gets the source count.
SourcePluginBase::doCount function core/modules/migrate/src/Plugin/migrate/source/SourcePluginBase.php Gets the source count.
SourceProviderTest::getEntityCounts function core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php
SourceProviderTest::getEntityCountsIncremental function core/modules/migrate_drupal_ui/tests/src/Functional/SourceProviderTest.php
Sql::$getCountOptimized property core/modules/views/src/Plugin/views/query/Sql.php Should this query be optimized for counts, for example no sorts.
Sql::countHelper function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php Counts records in a table.
Sql::errorCount function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Sql::importedCount function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Sql::messageCount function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Sql::processedCount function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
Sql::setCountField function core/modules/views/src/Plugin/views/query/Sql.php Set what field the query will count() on for paging.
Sql::updateCount function core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
SqlBase::doCount function core/modules/migrate/src/Plugin/migrate/source/SqlBase.php Gets the source count using countQuery().
SqlContentEntityStorage::countFieldData function core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php Determines the number of entities with values for a given field.
SqlCountCache class core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php Source plugin for Sql count cache test.
SqlCountCache.php file core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php
SqlCountCache::fields function core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php Returns available fields on the source.
SqlCountCache::getIds function core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php Defines the source fields uniquely identifying a source row.
SqlCountCache::query function core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php
StandardJavascriptTest::assertBigPipePlaceholderReplacementCount function core/profiles/standard/tests/src/FunctionalJavascript/StandardJavascriptTest.php Asserts the number of BigPipe placeholders that are replaced on the page.
Statement::$allowRowCount property core/lib/Drupal/Core/Database/Statement.php Is rowCount() execution allowed.
Statement::rowCount function core/lib/Drupal/Core/Database/Statement.php Returns the number of rows matched by the last SQL statement.
StatementEmpty::$allowRowCount property core/lib/Drupal/Core/Database/StatementEmpty.php Is rowCount() execution allowed.
StatementEmpty::rowCount function core/lib/Drupal/Core/Database/StatementEmpty.php

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