public function GroupRelationBase::defaultConfiguration in Group 2.0.x
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides ConfigurableInterface::defaultConfiguration
3 calls to GroupRelationBase::defaultConfiguration()
- GroupMembership::defaultConfiguration in src/
Plugin/ Group/ Relation/ GroupMembership.php - Gets default configuration for this plugin.
- GroupNode::defaultConfiguration in modules/
gnode/ src/ Plugin/ Group/ Relation/ GroupNode.php - Gets default configuration for this plugin.
- GroupRelationBase::setConfiguration in src/
Plugin/ Group/ Relation/ GroupRelationBase.php - Sets the configuration for this plugin instance.
2 methods override GroupRelationBase::defaultConfiguration()
- GroupMembership::defaultConfiguration in src/
Plugin/ Group/ Relation/ GroupMembership.php - Gets default configuration for this plugin.
- GroupNode::defaultConfiguration in modules/
gnode/ src/ Plugin/ Group/ Relation/ GroupNode.php - Gets default configuration for this plugin.
File
- src/
Plugin/ Group/ Relation/ GroupRelationBase.php, line 268
Class
- GroupRelationBase
- Provides a base class for GroupContentEnabler plugins.
Namespace
Drupal\group\Plugin\Group\RelationCode
public function defaultConfiguration() {
// Warning: For every key defined here you need to have a matching config
// schema entry following the pattern group_relation.config.MY_KEY!
// @see group.schema.yml
return [
'group_cardinality' => 0,
'entity_cardinality' => 0,
'use_creation_wizard' => 0,
];
}