I'm on Drupal 8.
I'm writing a module where I want to have custom entity which will reuse Block's visibility mechanism.
I don't want custom block type, I don't want my custom entities to appear as blocks in block system.
As in block's visibility settings, they might choose it to load:
- On specified paths.
- On specified content types.
- For specified user roles.
I have tried many things, I already implemented this functionality using custom blocks but in that case I had to alter block system to hide my custom blocks from it.
What I'm looking for now is the right way of extending Block's functionality so that I can reuse visibility settings part for custom entity type.