src/traits/SoftDeleteTrait.php
public function restore()
    {
        /** @var ActiveRecord $this */
        if (((boolean) $this->{$this->isDeletedAttribute}) !== false) {
            $this->{$this->isDeletedAttribute} = false;
            return $this->save(true, [$this->isDeletedAttribute]);
        }
        return true;
    }
public function restore()
    {
        /** @var ActiveRecord $this */
        if (((boolean) $this->{$this->isDeletedAttribute}) !== false) {
            $this->{$this->isDeletedAttribute} = false;
            return $this->save(true, [$this->isDeletedAttribute]);
        }
        return true;
    }
Restore a record after soft deleting.
@return bool