You are here

public function OgResolvedGroupCollection::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.

Overrides OgResolvedGroupCollectionInterface::getGroupInfo

File

src/OgResolvedGroupCollection.php, line 60

Class

OgResolvedGroupCollection
Contains a collection of groups discovered by OgGroupResolver plugins.

Namespace

Drupal\og

Code

public function getGroupInfo() {
  return $this->groupInfo;
}