$block->toArray() The result is being sent to the editor via the API in the panel kirby/src/Cms/Block.php#L234 $block->toArray(): array Return type array Parent class Kirby\Cms\Block