You are here

public function OgResolvedGroupCollectionInterface::setVoteWeight in Organic groups 8

Sets the default weight of the votes that are added by OgResolver plugins.

The plugins are ordered by priority. The votes cast by a plugin with a lower priority will have a lower weight in the final calculation.

The vote weight defaults to 0 when the class is instantiated.

Parameters

int $weight: The weight to assign to votes being cast.

1 method overrides OgResolvedGroupCollectionInterface::setVoteWeight()
OgResolvedGroupCollection::setVoteWeight in src/OgResolvedGroupCollection.php
Sets the default weight of the votes that are added by OgResolver plugins.

File

src/OgResolvedGroupCollectionInterface.php, line 115

Class

OgResolvedGroupCollectionInterface
Interface for classes providing a collection of resolved groups.

Namespace

Drupal\og

Code

public function setVoteWeight($weight);