Skip to main content
Jack Sleight .DEV

Helpers


Data Helpers

Data helpers are available in the JackSleight\StatamicBardMutator\Support\Data namespace.

Data::node($type, $attrs = [], $content = [])

Creates a new node object.

Data::mark($type, $attrs = [])

Creates a new mark object.

Data::text($text)

Creates a new text node object.

Data::html($html)

Creates a new HTML node object.