class BlockTransformer extends BaseBlockTransformer (View source)

Class BlockTransformer. Used when requested blocks directly via the /blocks API endpoint. This transformer makes an include of "pages" available to show you what pages blocks are on. When blocks are requested through other means, like the pages endpoints, they use the base block transformer because we don't want a recursive situation

Properties

protected $availableIncludes

Methods

transform(Block $block)

No description

includePage(Block $block)

No description

includePages(Block $block)

No description

Details

transform(Block $block)

No description

Parameters

Block $block

includePage(Block $block)

No description

Parameters

Block $block

includePages(Block $block)

No description

Parameters

Block $block