You are here

public function ExampleWebformHandler::defaultConfiguration in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php \Drupal\webform_example_handler\Plugin\WebformHandler\ExampleWebformHandler::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WebformHandlerBase::defaultConfiguration

File

modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php, line 47

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

public function defaultConfiguration() {
  return [
    'message' => 'This is a custom message.',
    'debug' => FALSE,
  ];
}