I have a template of my custom function and I am display certain number of items per row in this template.
For this reason I need to figure out if there are any blocks on the current page in any of the sidebars of my theme(left and right) so I can adjust the number of visible items.
So my question is how to get the list of blocks that are displayed on the current route in certain region and their visibility conditions were already processed?
I do not need to have exact information, ie. if some blocks have #access set to false or if they return empty render arrays are not important.