You are here

public function CivicrmOptions::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/CivicrmOptions.php, line 31

Class

CivicrmOptions
Provides a 'civicrm_options' element.

Namespace

Drupal\webform_civicrm\Plugin\WebformElement

Code

public function getDefaultProperties() {
  return [
    'form_key' => '',
    'pid' => 0,
    'value' => '',
    'empty_option' => '',
    'empty_value' => '',
    'options' => [],
    'options_randomize' => FALSE,
    'expose_list' => TRUE,
    'exposed_empty_option' => '- ' . t('Automatic') . ' -',
    'civicrm_live_options' => 1,
    'default_option' => '',
    'data_type' => NULL,
    'extra' => [
      'multiple' => FALSE,
      'aslist' => FALSE,
    ],
  ] + parent::getDefaultProperties();
}