Posted by mmlmitchell on September 5, 2020 at 5:52am
I'd like to create a view of all the Views on my Drupal 8 site. Ideally, such a view would detail where blocks are placed, what pages are created, which views are disabled, etc. Not having much luck with the UI. Looking for some insight. As shown by the admin page at "/admin/structure/views", some of the data is available and accessible.
Comments
Using Views?
Do you mean that you want to use the Views module to make a view that would list all the displays in all the views? If that is what you mean, it is unfortunately not possible, as far as I know. The Views module can make lists of various types of content (content items, custom blocks, taxonomy terms, user profiles), but it cannot make lists of configuration items (views, date formats, block placements, and the like). It's a different type of data behind the scenes, and the Views module is only set up to work with "content entities" not "config entities".
You could maybe write a module that would do that... it would be complicated, because a view that makes a block doesn't really "know" where the block is displayed (the properties of the view are part of the view's own configuration, but block placement is a separate config type). But it could definitely be done in code.
Otherwise, my only suggestion would be to go back to what we were talking about at the end of the last meeting, and manually write up a document. :(
Drupal programmer - http://poplarware.com
Drupal author - http://shop.oreilly.com/product/0636920034612.do
Drupal contributor - https://www.drupal.org/u/jhodgdon