Problem/Motivation
#2992410: Provide placeholders for empty blocks (for example, an empty Views listing) added the ability for blocks to specify a preview fallback string.
However, this is only triggered when the block returned is empty.
There is currently no way for the block to know if it is being previewed.
See #3027593: Empty facet blocks with Layout Builder
Proposed resolution
Allow blocks to retrieve the preview value by context.
As the block.module does not use the concept of preview, this is only needed in Layout Builder at the moment.
Remaining tasks
Pending subsystem maintainer review on the proposed strategy (in #26) for addressing the concern raised in #16.