Search for groupby

  1. Search 7.x for groupby
  2. Search 9.5.x for groupby
  3. Search 10.3.x for groupby
  4. Search 11.x for groupby
  5. Other projects
Title Object type File name Summary
QueryBase::$groupBy property core/lib/Drupal/Core/Entity/Query/QueryBase.php The list of columns to group on.
QueryBase::groupBy function core/lib/Drupal/Core/Entity/Query/QueryBase.php
QueryGroupByTest class core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests aggregate functionality of views, for example count.
QueryGroupByTest.php file core/modules/views/tests/src/Kernel/QueryGroupByTest.php
QueryGroupByTest::$modules property core/modules/views/tests/src/Kernel/QueryGroupByTest.php Modules to enable.
QueryGroupByTest::$storage property core/modules/views/tests/src/Kernel/QueryGroupByTest.php The storage for the test entity type.
QueryGroupByTest::$testViews property core/modules/views/tests/src/Kernel/QueryGroupByTest.php Views used by this test.
QueryGroupByTest::groupByTestHelper function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Provides a test helper which runs a view with some aggregation function.
QueryGroupByTest::setUp function core/modules/views/tests/src/Kernel/QueryGroupByTest.php
QueryGroupByTest::setupTestEntities function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Helper method that creates some test entities.
QueryGroupByTest::testAggregateCount function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests aggregate count feature.
QueryGroupByTest::testGroupByAverage function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests the average aggregation function.
QueryGroupByTest::testGroupByBaseField function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests grouping on base field.
QueryGroupByTest::testGroupByCount function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests the count aggregation function.
QueryGroupByTest::testGroupByCountOnlyFilters function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests groupby with filters.
QueryGroupByTest::testGroupByFieldWithCardinality function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests grouping a field with cardinality > 1.
QueryGroupByTest::testGroupByMax function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests the max aggregation function.
QueryGroupByTest::testGroupByMin function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests the min aggregation function.
QueryGroupByTest::testGroupByNone function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests aggregation with no specific function.
QueryGroupByTest::testGroupBySum function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests the sum aggregation function.
QueryGroupByTest::testGroupByWithFieldsNotExistingOnBundle function core/modules/views/tests/src/Kernel/QueryGroupByTest.php Tests groupby with a field not existing on some bundle.
Random::usesGroupBy function core/modules/views/src/Plugin/views/sort/Random.php Provides the handler some groupby.
RelationshipPluginBase::usesGroupBy function core/modules/views/src/Plugin/views/relationship/RelationshipPluginBase.php Provides the handler some groupby.
RenderedEntity::usesGroupBy function core/modules/views/src/Plugin/views/field/RenderedEntity.php Provides the handler some groupby.
Select::getGroupBy function core/lib/Drupal/Core/Database/Query/Select.php Returns a reference to the group-by array for this query.
Select::groupBy function core/lib/Drupal/Core/Database/Query/Select.php Groups the result set by the specified field.
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::testGroupBy function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests GROUP BY clauses.
SelectComplexTest::testGroupByAndHaving function core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php Tests GROUP BY and HAVING clauses together.
SelectExtender::getGroupBy function core/lib/Drupal/Core/Database/Query/SelectExtender.php Returns a reference to the group-by array for this query.
SelectExtender::groupBy function core/lib/Drupal/Core/Database/Query/SelectExtender.php Groups the result set by the specified field.
SelectInterface::getGroupBy function core/lib/Drupal/Core/Database/Query/SelectInterface.php Returns a reference to the group-by array for this query.
SelectInterface::groupBy function core/lib/Drupal/Core/Database/Query/SelectInterface.php Groups the result set by the specified field.
Sql::$groupby property core/modules/views/src/Plugin/views/query/Sql.php A simple array of group by clauses.
Sql::addGroupBy function core/modules/views/src/Plugin/views/query/Sql.php Add a simple GROUP BY clause to the query. The caller is responsible
for ensuring that the fields are fully qualified and the table is properly
added.
views.view.test_views_groupby_save.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_views_groupby_save.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_views_groupby_save.yml

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