You are here

public function UserFlagType::defaultConfiguration in Flag 8.4

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides EntityFlagType::defaultConfiguration

File

src/Plugin/Flag/UserFlagType.php, line 26

Class

UserFlagType
Provides a flag type for user entities.

Namespace

Drupal\flag\Plugin\Flag

Code

public function defaultConfiguration() {
  $options = parent::defaultConfiguration();
  $options += [
    'show_on_profile' => TRUE,
  ];
  return $options;
}