You are here

public function WebformProtectedDownloadsHandler::defaultConfiguration in Webform Protected Downloads 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides WebformHandlerBase::defaultConfiguration

1 call to WebformProtectedDownloadsHandler::defaultConfiguration()
WebformProtectedDownloadsHandler::submitConfigurationForm in src/Plugin/WebformHandler/WebformProtectedDownloadsHandler.php
Form submission handler.

File

src/Plugin/WebformHandler/WebformProtectedDownloadsHandler.php, line 55

Class

WebformProtectedDownloadsHandler
Handler for protected downloads

Namespace

Drupal\webform_protected_downloads\Plugin\WebformHandler

Code

public function defaultConfiguration() {
  return [
    'expiration_one_time' => false,
    'expiration_time' => 0,
    'expiration_page' => 'page_reload',
    'expiration_page_custom' => '',
    'expiration_error_message' => 'This link has expired.',
    'token_text' => 'Download',
    'protected_files' => [],
    'protected_files_allowed_extensions' => 'gif png jpg jpeg',
    'debug' => false,
  ];
}