You are here

protected function WebformCheckboxesOther::defineDefaultProperties in Webform 8.5

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

Define an element's default properties.

Return value

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

Overrides Checkboxes::defineDefaultProperties

File

src/Plugin/WebformElement/WebformCheckboxesOther.php, line 24

Class

WebformCheckboxesOther
Provides a 'checkboxes_other' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function defineDefaultProperties() {
  $properties = parent::defineDefaultProperties();

  // Remove 'All of the above' options.
  unset($properties['options_all'], $properties['options_all_value'], $properties['options_all_text']);
  return $properties;
}