protected function WebformImageFile::defineDefaultProperties in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElement/WebformImageFile.php \Drupal\webform\Plugin\WebformElement\WebformImageFile::defineDefaultProperties()
Define an element's default properties.
Return value
array An associative array contain an the element's default properties.
Overrides WebformManagedFileBase::defineDefaultProperties
File
- src/
Plugin/ WebformElement/ WebformImageFile.php, line 27
Class
- WebformImageFile
- Provides a 'webform_image_file' element.
Namespace
Drupal\webform\Plugin\WebformElementCode
protected function defineDefaultProperties() {
$properties = parent::defineDefaultProperties() + [
'max_resolution' => '',
'min_resolution' => '',
];
if ($this->moduleHandler
->moduleExists('image')) {
$properties['attachment_image_style'] = '';
}
return $properties;
}