Now that a beta release is out, it would be great to update the documentation and provide some code examples for 4.x as was done for 3.x.

A good start would be copying the structure of the linked page but updating the code examples for 4.x (since the code is completely different in D8).