public function SmsVerification::rollback in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 src/Plugin/migrate/destination/SmsVerification.php \Drupal\sms\Plugin\migrate\destination\SmsVerification::rollback()
- 2.x src/Plugin/migrate/destination/SmsVerification.php \Drupal\sms\Plugin\migrate\destination\SmsVerification::rollback()
Delete the specified destination object from the target Drupal.
Parameters
array $destination_identifier: The ID of the destination object to delete.
Overrides EntityContentBase::rollback
File
- src/
Plugin/ migrate/ destination/ SmsVerification.php, line 97
Class
- SmsVerification
- Destination plugin for SMS phone number verifications.
Namespace
Drupal\sms\Plugin\migrate\destinationCode
public function rollback(array $destination_identifier) {
/** @var \Drupal\sms\Entity\PhoneNumberVerification $verification */
$verification = $this->storage
->load(reset($destination_identifier));
$this
->unsetVerifiedValue($verification);
// Remove the verified user phone number.
parent::rollback($destination_identifier);
}