Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Statement\Grouper\StatementGrouper Interface Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Statement\Grouper\StatementGrouper:

Public Member Functions

 groupStatements (StatementList $statements)
 

Detailed Description

Since
3.2
Author
Thiemo Kreuz

Member Function Documentation

◆ groupStatements()

Wikibase\DataModel\Services\Statement\Grouper\StatementGrouper::groupStatements ( StatementList $statements)
Parameters
StatementList$statements
Returns
StatementList[] An associative array of StatementList objects. All statements from the provided list must be present in the result exactly once, and no other statement can be included. The array keys act as identifiers for each group, and can be used as (parts of) message keys.

Implemented in Wikibase\DataModel\Services\Statement\Grouper\FilteringStatementGrouper, Wikibase\DataModel\Services\Statement\Grouper\NullStatementGrouper, and Wikibase\Repo\DispatchingEntityTypeStatementGrouper.


The documentation for this interface was generated from the following file: