I followed the steps from https://www.webwash.net/programmatically-create-block-drupal-8/. I have a view already created and I want to render this view in this block. I can't find a good documentation for build() function.
The reason is that I want to hide the view for a role implicitly included by authenticated role.
How can I display the existing view inside the custom block I've created?