You are here

protected function WebformTable::defineDefaultProperties in Webform 6.x

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

Define an element's default properties.

Return value

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

Overrides WebformElementBase::defineDefaultProperties

File

src/Plugin/WebformElement/WebformTable.php, line 26

Class

WebformTable
Provides a 'webform_table' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = parent::defineDefaultProperties() + [
    'title' => [],
    'header' => [],
    'caption' => '',
    'sticky' => FALSE,
    'prefix_children' => TRUE,
  ];
  unset($properties['format_items'], $properties['format_items_html'], $properties['format_items_text'], $properties['unique'], $properties['unique_user'], $properties['unique_entity'], $properties['unique_error'], $properties['disabled'], $properties['prepopulate']);
  return $properties;
}