You are here

public function RemotePostYamlFormHandler::defaultConfiguration in YAML Form 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides YamlFormHandlerBase::defaultConfiguration

File

src/Plugin/YamlFormHandler/RemotePostYamlFormHandler.php, line 97

Class

RemotePostYamlFormHandler
Form submission remote post handler.

Namespace

Drupal\yamlform\Plugin\YamlFormHandler

Code

public function defaultConfiguration() {
  $field_names = array_keys(\Drupal::service('entity_field.manager')
    ->getBaseFieldDefinitions('yamlform_submission'));
  $excluded_data = array_combine($field_names, $field_names);
  return [
    'type' => 'x-www-form-urlencoded',
    'insert_url' => '',
    'update_url' => '',
    'delete_url' => '',
    'excluded_data' => $excluded_data,
    'custom_data' => '',
    'insert_custom_data' => '',
    'update_custom_data' => '',
    'delete_custom_data' => '',
    'debug' => FALSE,
  ];
}