Add getPages method to content catalog
Add the method getPages()
to the content catalog as a more efficient and user-friendly alternative to findBy({ family: 'page' })
. Retrieving all the pages is a very common operation and now that we're going to be exposing the content catalog to the UI, it makes sense to promote it to the top-level.