You are here

public function GroupRelationBase::getGroupCardinality in Group 2.0.x

Returns the amount of groups the same content can be added to.

Return value

int The group content's group cardinality.

Overrides GroupRelationInterface::getGroupCardinality

File

src/Plugin/Group/Relation/GroupRelationBase.php, line 108

Class

GroupRelationBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function getGroupCardinality() {
  return $this->configuration['group_cardinality'];
}