In the snippet below, I'm trying to get all of the donations content type for the current page so I can iterate over some information on each of them. However, when I use var_dump on the array containing all of these donations that I want, it shows an array with 57 donations, when I only have 3.
Presumably, it is no coincidence that the first 54 donations look like this:
I am developping a module which adds "advanced actions" to the new Drupal 8 Layout Builder.
For example, cloning a page layout into another, reordering sections inside a page layout, etc. For the moment i essentially use custom database queries in order to achieve this, and this is working quite well (despite the fact that this probably is not the correct way to do this).
I spent couple of hours to find a way to set table-style as default display of Media library when the field widget modal is opening with 'File' as media-type, but no luck. It always opens with 'Grid' style.
Can anyone give me some advises how to do that? Should I use viewsview hook to override the Media Library view?