ProductVariationDeleteForm.php in Commerce Core 8.2
File
modules/product/src/Form/ProductVariationDeleteForm.php
View source
<?php
namespace Drupal\commerce_product\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm;
class ProductVariationDeleteForm extends ContentEntityDeleteForm {
public function getQuestion() {
return $this
->t('Are you sure you want to delete the %label variation?', [
'%label' => $this
->getEntity()
->label(),
]);
}
protected function getDeletionMessage() {
$entity = $this
->getEntity();
return $this
->t('The %label variation has been deleted.', [
'%label' => $entity
->label(),
]);
}
protected function logDeletionMessage() {
$entity = $this
->getEntity();
$this
->logger($entity
->getEntityType()
->getProvider())
->notice('The %label variation has been deleted.', [
'%label' => $entity
->label(),
]);
}
}