You are here

public function GroupMembership::defaultConfiguration in Group 2.0.x

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides GroupRelationBase::defaultConfiguration

File

src/Plugin/Group/Relation/GroupMembership.php, line 85

Class

GroupMembership
Provides a group relation plugin for users as members.

Namespace

Drupal\group\Plugin\Group\Relation

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config['entity_cardinality'] = 1;
  return $config;
}