Problem/Motivation
When using drush enity-type-read node --fields=bundles it's impossible to select ie only the page bundle. As field_info_* are added it could be nice to have a path into the fields.
Proposed resolution
Allow fields option to respect a path like
--fields=bundles/page/admin
--fields=**/label
--fields=**/page/**format
The result should still have the path intact with the resulting array.
Remaining tasks
Implement this.
Comments
Comment #1
clemens.tolboomThe current version supports commands like
resulting
Comment #2
clemens.tolboomThe work lies in having the wildcard as a start. This works ok
But have a wildcard upfront fails.
Comment #3
clemens.tolboomI fixed the wildcards.
I like this command
drush --debug entity-type-read --fields='**/label' `drush etr`as it gives all keys == 'label'.Comment #4
clemens.tolboomThis command works
drush er node `drush er node` --fields='**/und'But this fails
drush er node `drush er node` --fields='**/value'I suspect the [0] index in the result.
Comment #5
clemens.tolboomThis
works fine now.
Comment #6
clemens.tolboomComment #7
clemens.tolboomComment #8.0
(not verified) commentedUpdated the proposed solution.