public function CivicrmContact::getDefaultProperties in Webform CiviCRM Integration 8.5
Get default properties.
Return value
array An associative array containing default element properties.
Overrides WebformElementBase::getDefaultProperties
File
- src/
Plugin/ WebformElement/ CivicrmContact.php, line 31
Class
- CivicrmContact
- Provides a 'textfield' element.
Namespace
Drupal\webform_civicrm\Plugin\WebformElementCode
public function getDefaultProperties() {
return [
'name' => '',
'form_key' => '',
'pid' => 0,
'weight' => 0,
'value' => '',
'required' => 0,
'search_prompt' => '',
'none_prompt' => '',
'results_display' => [
'display_name',
],
'allow_create' => 0,
'widget' => '',
'contact_type' => '',
'show_hidden_contact' => 0,
'unique' => 0,
'title_display' => 'before',
'randomize' => 0,
'description' => '',
'no_autofill' => [],
'hide_fields' => [],
'hide_method' => 'hide',
'no_hide_blank' => FALSE,
'submit_disabled' => FALSE,
'attributes' => [],
'private' => FALSE,
'default' => '',
'default_contact_id' => '',
'default_relationship_to' => '',
'default_relationship' => '',
'allow_url_autofill' => TRUE,
'dupes_allowed' => FALSE,
'filter_relationship_types' => [],
'filter_relationship_contact' => [],
'contact_sub_type' => '',
'group' => [],
'tag' => [],
'check_permissions' => 1,
// Set for custom fields.
'expose_list' => FALSE,
'empty_option' => '',
] + parent::getDefaultProperties();
}