You are here

protected function WebformAttachmentBase::defineDefaultBaseProperties in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php \Drupal\webform_attachment\Plugin\WebformElement\WebformAttachmentBase::defineDefaultBaseProperties()

Define default base properties used by all elements.

Return value

array An associative array containing base properties used by all elements.

Overrides WebformElementBase::defineDefaultBaseProperties

1 call to WebformAttachmentBase::defineDefaultBaseProperties()
WebformAttachmentBase::defineDefaultProperties in modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php
Define an element's default properties.

File

modules/webform_attachment/src/Plugin/WebformElement/WebformAttachmentBase.php, line 47

Class

WebformAttachmentBase
Provides a base class for 'webform_attachment' elements.

Namespace

Drupal\webform_attachment\Plugin\WebformElement

Code

protected function defineDefaultBaseProperties() {
  $properties = parent::defineDefaultBaseProperties();
  unset($properties['prepopulate'], $properties['states_clear']);
  return $properties;
}