public function restore(EntityInterface $entity) { $softDeleteField = $this->getSoftDeleteField(); $entity->{$softDeleteField} = null; return $this->save($entity); }