You are here

public function GroupContentEnablerBase::defaultConfiguration in Group 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ConfigurableInterface::defaultConfiguration

3 calls to GroupContentEnablerBase::defaultConfiguration()
GroupContentEnablerBase::setConfiguration in src/Plugin/GroupContentEnablerBase.php
Sets the configuration for this plugin instance.
GroupMembership::defaultConfiguration in src/Plugin/GroupContentEnabler/GroupMembership.php
Gets default configuration for this plugin.
GroupNode::defaultConfiguration in modules/gnode/src/Plugin/GroupContentEnabler/GroupNode.php
Gets default configuration for this plugin.
2 methods override GroupContentEnablerBase::defaultConfiguration()
GroupMembership::defaultConfiguration in src/Plugin/GroupContentEnabler/GroupMembership.php
Gets default configuration for this plugin.
GroupNode::defaultConfiguration in modules/gnode/src/Plugin/GroupContentEnabler/GroupNode.php
Gets default configuration for this plugin.

File

src/Plugin/GroupContentEnablerBase.php, line 481

Class

GroupContentEnablerBase
Provides a base class for GroupContentEnabler plugins.

Namespace

Drupal\group\Plugin

Code

public function defaultConfiguration() {

  // Warning: For every key defined here you need to have a matching config
  // schema entry following the pattern group_content_enabler.config.MY_KEY!
  // @see group.schema.yml
  return [
    'group_cardinality' => 0,
    'entity_cardinality' => 0,
    'use_creation_wizard' => 0,
  ];
}