You are here

public function OgResolvedGroupCollectionInterface::getGroupInfo in Organic groups 8

Returns information about the groups in the collection.

Return value

array An array of groups. Each item will be an associative array with the following keys:

  • entity: the group entity.
  • votes: an array of votes that have been cast for this entity.
  • cache_contexts: an array of cache contexts that were used to discover this group.
1 method overrides OgResolvedGroupCollectionInterface::getGroupInfo()
OgResolvedGroupCollection::getGroupInfo in src/OgResolvedGroupCollection.php
Returns information about the groups in the collection.

File

src/OgResolvedGroupCollectionInterface.php, line 75

Class

OgResolvedGroupCollectionInterface
Interface for classes providing a collection of resolved groups.

Namespace

Drupal\og

Code

public function getGroupInfo();