public function OrderStatus::delete in Ubercart 8.4
Deletes an entity permanently.
Throws
\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.
Overrides EntityBase::delete
File
- uc_order/
src/ Entity/ OrderStatus.php, line 137
Class
- OrderStatus
- Defines the order status entity.
Namespace
Drupal\uc_order\EntityCode
public function delete() {
if ($this
->isLocked()) {
throw new \LogicException('Locked statuses cannot be deleted.');
}
parent::delete();
}