Render Block View Helper
Locate and return template part with passed attributes for a block.
Usage
Inside your block view PHP file you'd write:
$this->render_block_view(
'/components/heading/heading.php',
[
'blockClass' => $attributes['blockClass'] ?? '',
'heading' => $attributes['heading'] ?? [],
]
);
In the case you are using libs with dependency injection container, this should be handled by the library and the render_block_view
method is provided in block view by default.