how to get banner image based on the role? I want to have a banner in home page which should change according to the logged in user role.How can i achieve this?
I'm trying edit 'page--front.html.twig'. But i'm not able to fetch logged in users role.How to check user roles inside this twig file?
Considering you have created multiple Blocks for individual role  from Drupal admin UI.

You can restrict each block role wise.