public function GroupNode::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
- modules/
gnode/ src/ Plugin/ Group/ Relation/ GroupNode.php, line 61
Class
- GroupNode
- Provides a group relation for nodes.
Namespace
Drupal\gnode\Plugin\Group\RelationCode
public function defaultConfiguration() {
$config = parent::defaultConfiguration();
$config['entity_cardinality'] = 1;
return $config;
}