Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. QueryAggregateInterface.php

function QueryAggregateInterface::groupBy

Specifies the field to group on.

Parameters

string $field: The name of the field to group by.

Return value

$this The called object.

File

core/lib/Drupal/Core/Entity/Query/QueryAggregateInterface.php, line 40

Class

QueryAggregateInterface
Defines an interface for aggregated entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function groupBy($field);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal