You are here

public function WebformCompositeBase::postDelete in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformElement/WebformCompositeBase.php \Drupal\webform\Plugin\WebformElement\WebformCompositeBase::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/WebformCompositeBase.php, line 1430

Class

WebformCompositeBase
Provides a base for composite 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
}