Skip to main content

searchBlock

Speedy search for limited display of block objects

Blocks.searchBlock(name, langCode)

const value = await Blocks.searchBlock('my-marker')
Schema

marker:* string
Block identifier
example: my-marker

langCode: string
Language code
example: en_US

Quick search for block objects with limited output.

Example return:

[
{
"id": 1,
"name": "my block",
"identifier": "my-block"
}
]