You are here

public function GroupMedia::defaultConfiguration in Group Media 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/GroupContentEnabler/GroupMedia.php \Drupal\groupmedia\Plugin\GroupContentEnabler\GroupMedia::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides GroupContentEnablerBase::defaultConfiguration

File

src/Plugin/GroupContentEnabler/GroupMedia.php, line 79

Class

GroupMedia
Provides a content enabler for nodes.

Namespace

Drupal\groupmedia\Plugin\GroupContentEnabler

Code

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