The 2018 Laws really make a mess of this.
Also, don't forget this scenario : attacking player carries the ball into opponents' in goal but then steps over the DBL
If you had only the Law Book you wouldn't know how to restart, as the Law Book doesn't cover it.