public static function YamlForm::getDefaultSettings in YAML Form 8
Returns the form default settings.
Return value
array A structured array containing all the form default settings.
Overrides YamlFormInterface::getDefaultSettings
5 calls to YamlForm::getDefaultSettings()
- YamlForm::getSettings in src/
Entity/ YamlForm.php - Returns the form settings.
- YamlForm::preCreate in src/
Entity/ YamlForm.php - Changes the values of an entity before it is created.
- YamlForm::setSettings in src/
Entity/ YamlForm.php - Sets the form settings.
- YamlFormTestTrait::createYamlForm in src/
Tests/ YamlFormTestTrait.php - Create a form with submissions.
- _yamlform_update_form_settings in ./
yamlform.install - Update form setting to reflect changes in the default settings.
File
- src/
Entity/ YamlForm.php, line 490
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public static function getDefaultSettings() {
return [
'page' => TRUE,
'page_submit_path' => '',
'page_confirm_path' => '',
'form_submit_label' => '',
'form_submit_attributes' => [],
'form_exception_message' => '',
'form_closed_message' => '',
'form_confidential' => FALSE,
'form_confidential_message' => '',
'form_prepopulate' => FALSE,
'form_prepopulate_source_entity' => FALSE,
'form_novalidate' => FALSE,
'form_unsaved' => FALSE,
'form_disable_back' => FALSE,
'form_autofocus' => FALSE,
'form_details_toggle' => FALSE,
'wizard_progress_bar' => TRUE,
'wizard_progress_pages' => FALSE,
'wizard_progress_percentage' => FALSE,
'wizard_next_button_label' => '',
'wizard_next_button_attributes' => [],
'wizard_prev_button_label' => '',
'wizard_prev_button_attributes' => [],
'wizard_start_label' => '',
'wizard_complete' => TRUE,
'wizard_complete_label' => '',
'preview' => DRUPAL_DISABLED,
'preview_next_button_label' => '',
'preview_next_button_attributes' => [],
'preview_prev_button_label' => '',
'preview_prev_button_attributes' => [],
'preview_message' => '',
'draft' => FALSE,
'draft_auto_save' => FALSE,
'draft_button_label' => '',
'draft_button_attributes' => [],
'draft_saved_message' => '',
'draft_loaded_message' => '',
'confirmation_type' => 'page',
'confirmation_message' => '',
'confirmation_url' => '',
'confirmation_attributes' => [],
'confirmation_back' => TRUE,
'confirmation_back_label' => '',
'confirmation_back_attributes' => [],
'limit_total' => NULL,
'limit_total_message' => '',
'limit_user' => NULL,
'limit_user_message' => '',
'entity_limit_total' => NULL,
'entity_limit_user' => NULL,
'results_disabled' => FALSE,
'results_disabled_ignore' => FALSE,
'token_update' => FALSE,
];
}