You are here

protected function ProductVariationDeleteForm::logDeletionMessage in Commerce Core 8.2

Overrides ContentEntityDeleteForm::logDeletionMessage

File

modules/product/src/Form/ProductVariationDeleteForm.php, line 37

Class

ProductVariationDeleteForm
Overrides messages to use "variation" instead of "product variation".

Namespace

Drupal\commerce_product\Form

Code

protected function logDeletionMessage() {
  $entity = $this
    ->getEntity();
  $this
    ->logger($entity
    ->getEntityType()
    ->getProvider())
    ->notice('The %label variation has been deleted.', [
    '%label' => $entity
      ->label(),
  ]);
}