You are here

public function ShsTermSelect::getDefaultProperties in Webform Simple Hierarchical Select 8

Get default properties.

Return value

array An associative array containing default element properties.

Overrides WebformElementBase::getDefaultProperties

File

src/Plugin/WebformElement/ShsTermSelect.php, line 35

Class

ShsTermSelect
Provides a 'webform_shs_term_select' Webform element.

Namespace

Drupal\webform_shs\Plugin\WebformElement

Code

public function getDefaultProperties() {
  $properties = parent::getDefaultProperties() + [
    'force_deepest' => FALSE,
    'force_deepest_error' => '',
    'cache_options' => FALSE,
    'depth_labels' => [],
    'addNewLabel' => '',
  ];
  unset($properties['select2']);
  unset($properties['chosen']);
  unset($properties['breadcrumb']);
  unset($properties['breadcrumb_delimiter']);
  unset($properties['tree_delimiter']);
  return $properties;
}