I've create views as block. Then i tried to theme my views block by altering
block--views-block-html.twig file. I've struggled to get views machine name in this file. I need views machine name for some reason. So any other solutions to get views machine name?
Views machine name would be: /admin/structure/views/view/frontpage.
You can edit/change the view name on right corner: Edit view name / description.
You can override the template name using below.
[base template name]--[view machine name]--[view display id].html.twig
[base template name]--[view machine name]--[view display type].html.twig
So this would be:
There is no theme information is displayed with D8 views as D7 views was having the those information.
Please refer the reference page.
You should be able to access the ID with:
...but to do that, you need to preprocess the block/view; in my case, I needed to grab the machine name of a view that I was preprocessing using
See the other options/methods you can access inside