public function WebformManagedFileBase::postDelete in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElement/WebformManagedFileBase.php \Drupal\webform\Plugin\WebformElement\WebformManagedFileBase::postDelete()
Delete any additional value associated with an element.
Currently only applicable to file uploads.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Overrides WebformElementBase::postDelete
File
- src/
Plugin/ WebformElement/ WebformManagedFileBase.php, line 584
Class
- WebformManagedFileBase
- Provides a base class webform 'managed_file' elements.
Namespace
Drupal\webform\Plugin\WebformElementCode
public function postDelete(array &$element, WebformSubmissionInterface $webform_submission) {
// Uploaded files are deleted via the webform submission.
// This ensures that all files associated with a submission are deleted.
// @see \Drupal\webform\WebformSubmissionStorage::delete
}