You are here

public function DisclaimerEmailBlock::defaultConfiguration in Disclaimer 8

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/DisclaimerEmailBlock.php, line 98

Class

DisclaimerEmailBlock
Provides a 'DisclaimerEmailBlock' block.

Namespace

Drupal\disclaimer\Plugin\Block

Code

public function defaultConfiguration() {
  return [
    'machine_name' => 'disclaimer_email_block_' . time(),
    'redirect' => '/',
    'max_age' => 86400,
    'challenge' => [
      'format' => filter_fallback_format(),
      'value' => '',
    ],
    'allowed_emails' => '*',
    'email_validation_fail' => 'Your address is not on the list of allowed e-mails.',
    'disclaimer' => [
      'format' => filter_fallback_format(),
      'value' => '',
    ],
  ] + parent::defaultConfiguration();
}