You are here

public static function Webform::getDefaultSettings in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Entity/Webform.php \Drupal\webform\Entity\Webform::getDefaultSettings()

Returns the webform default settings.

Return value

array A structured array containing all the webform default settings.

Overrides WebformInterface::getDefaultSettings

6 calls to Webform::getDefaultSettings()
SettingsWebformHandler::validateConfigurationForm in src/Plugin/WebformHandler/SettingsWebformHandler.php
Form validation handler.
Webform::getSettings in src/Entity/Webform.php
Returns the webform settings.
Webform::preCreate in src/Entity/Webform.php
Changes the values of an entity before it is created.
Webform::setSettings in src/Entity/Webform.php
Sets the webform settings.
WebformBrowserTestTrait::createWebform in tests/src/Traits/WebformBrowserTestTrait.php
Create a webform.

... See full list

File

src/Entity/Webform.php, line 1063

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public static function getDefaultSettings() {
  return [
    'ajax' => FALSE,
    'ajax_scroll_top' => 'form',
    'ajax_progress_type' => '',
    'ajax_effect' => '',
    'ajax_speed' => NULL,
    'page' => TRUE,
    'page_submit_path' => '',
    'page_confirm_path' => '',
    'page_theme_name' => '',
    'form_title' => 'both',
    'form_submit_once' => FALSE,
    'form_exception_message' => '',
    'form_open_message' => '',
    'form_close_message' => '',
    'form_previous_submissions' => TRUE,
    'form_confidential' => FALSE,
    'form_confidential_message' => '',
    'form_remote_addr' => TRUE,
    'form_convert_anonymous' => FALSE,
    'form_prepopulate' => FALSE,
    'form_prepopulate_source_entity' => FALSE,
    'form_prepopulate_source_entity_required' => FALSE,
    'form_prepopulate_source_entity_type' => FALSE,
    'form_reset' => FALSE,
    'form_disable_autocomplete' => FALSE,
    'form_novalidate' => FALSE,
    'form_disable_inline_errors' => FALSE,
    'form_required' => FALSE,
    'form_unsaved' => FALSE,
    'form_disable_back' => FALSE,
    'form_submit_back' => FALSE,
    'form_autofocus' => FALSE,
    'form_details_toggle' => FALSE,
    'form_access_denied' => WebformInterface::ACCESS_DENIED_DEFAULT,
    'form_access_denied_title' => '',
    'form_access_denied_message' => '',
    'form_access_denied_attributes' => [],
    'form_file_limit' => '',
    'share' => FALSE,
    'share_node' => FALSE,
    'share_theme_name' => '',
    'share_title' => TRUE,
    'share_page_body_attributes' => [],
    'submission_label' => '',
    'submission_log' => FALSE,
    'submission_views' => [],
    'submission_views_replace' => [],
    'submission_user_columns' => [],
    'submission_user_duplicate' => FALSE,
    'submission_access_denied' => WebformInterface::ACCESS_DENIED_DEFAULT,
    'submission_access_denied_title' => '',
    'submission_access_denied_message' => '',
    'submission_access_denied_attributes' => [],
    'submission_exception_message' => '',
    'submission_locked_message' => '',
    'submission_excluded_elements' => [],
    'submission_exclude_empty' => FALSE,
    'submission_exclude_empty_checkbox' => FALSE,
    'previous_submission_message' => '',
    'previous_submissions_message' => '',
    'autofill' => FALSE,
    'autofill_message' => '',
    'autofill_excluded_elements' => [],
    'wizard_progress_bar' => TRUE,
    'wizard_progress_pages' => FALSE,
    'wizard_progress_percentage' => FALSE,
    'wizard_progress_link' => FALSE,
    'wizard_progress_states' => FALSE,
    'wizard_auto_forward' => TRUE,
    'wizard_auto_forward_hide_next_button' => FALSE,
    'wizard_keyboard' => TRUE,
    'wizard_start_label' => '',
    'wizard_preview_link' => FALSE,
    'wizard_confirmation' => TRUE,
    'wizard_confirmation_label' => '',
    'wizard_track' => '',
    'wizard_prev_button_label' => '',
    'wizard_next_button_label' => '',
    'wizard_toggle' => FALSE,
    'wizard_toggle_show_label' => '',
    'wizard_toggle_hide_label' => '',
    'preview' => DRUPAL_DISABLED,
    'preview_label' => '',
    'preview_title' => '',
    'preview_message' => '',
    'preview_attributes' => [],
    'preview_excluded_elements' => [],
    'preview_exclude_empty' => TRUE,
    'preview_exclude_empty_checkbox' => FALSE,
    'draft' => WebformInterface::DRAFT_NONE,
    'draft_multiple' => FALSE,
    'draft_auto_save' => FALSE,
    'draft_saved_message' => '',
    'draft_loaded_message' => '',
    'draft_pending_single_message' => '',
    'draft_pending_multiple_message' => '',
    'confirmation_type' => WebformInterface::CONFIRMATION_PAGE,
    'confirmation_title' => '',
    'confirmation_message' => '',
    'confirmation_url' => '',
    'confirmation_attributes' => [],
    'confirmation_back' => TRUE,
    'confirmation_back_label' => '',
    'confirmation_back_attributes' => [],
    'confirmation_exclude_query' => FALSE,
    'confirmation_exclude_token' => FALSE,
    'confirmation_update' => FALSE,
    'limit_total' => NULL,
    'limit_total_interval' => NULL,
    'limit_total_message' => '',
    'limit_total_unique' => FALSE,
    'limit_user' => NULL,
    'limit_user_interval' => NULL,
    'limit_user_message' => '',
    'limit_user_unique' => FALSE,
    'entity_limit_total' => NULL,
    'entity_limit_total_interval' => NULL,
    'entity_limit_user' => NULL,
    'entity_limit_user_interval' => NULL,
    'purge' => WebformSubmissionStorageInterface::PURGE_NONE,
    'purge_days' => NULL,
    'results_disabled' => FALSE,
    'results_disabled_ignore' => FALSE,
    'results_customize' => FALSE,
    'token_view' => FALSE,
    'token_update' => FALSE,
    'token_delete' => FALSE,
    'serial_disabled' => FALSE,
  ];
}