You are here

public function WebformManagedFileBase::postDelete in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 521

Class

WebformManagedFileBase
Provides a base class webform 'managed_file' elements.

Namespace

Drupal\webform\Plugin\WebformElement

Code

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
}