You are here

public function GroupMenu::defaultConfiguration in Group Menu 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides GroupContentEnablerBase::defaultConfiguration

File

src/Plugin/GroupContentEnabler/GroupMenu.php, line 121

Class

GroupMenu
Provides a content enabler for nodes.

Namespace

Drupal\groupmenu\Plugin\GroupContentEnabler

Code

public function defaultConfiguration() {
  $config = parent::defaultConfiguration();
  $config['entity_cardinality'] = 1;
  $config['node_form_group_menu'] = 1;
  $config['auto_create_group_menu'] = FALSE;
  $config['auto_create_home_link'] = FALSE;
  $config['auto_create_home_link_title'] = 'Home';
  return $config;
}