You are here

protected function WebformTermSelect::defineDefaultProperties in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/WebformTermSelect.php \Drupal\webform\Plugin\WebformElement\WebformTermSelect::defineDefaultProperties()

Define an element's default properties.

Return value

array An associative array contain an the element's default properties.

Overrides WebformEntityOptionsTrait::defineDefaultProperties

File

src/Plugin/WebformElement/WebformTermSelect.php, line 28

Class

WebformTermSelect
Provides a 'webform_term_select' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = [
    'vocabulary' => '',
    'breadcrumb' => FALSE,
    'breadcrumb_delimiter' => ' › ',
    'tree_delimiter' => '-',
    'depth' => NULL,
  ] + parent::defineDefaultProperties();
  unset($properties['options'], $properties['options_randomize'], $properties['sort_options']);
  return $properties;
}