class Blocks (View source)

The Blocks class.

Properties

static $extensionAssets Multidimensional array of collected extension assets grouped by type (CSS/JS).

Methods

static string
injectAssets($str)

Inject block assets into the header of a page.

static string
render(string $json, object $Automad)

Render blocks created by the EditorJS block editor.

Details

static string injectAssets($str)

Inject block assets into the header of a page.

Parameters

$str

Return Value

string the processed HTML

static string render(string $json, object $Automad)

Render blocks created by the EditorJS block editor.

Parameters

string $json
object $Automad

Return Value

string the rendered HTML