YamlProcessor

Yaml processor contract.

 interface Winter\Storm\Parse\Processor\Contracts\YamlProcessor

Allows for pre-or-post processing of YAML content during parsing or rendering.

Methods

public preprocess (string $text) : string

Pre-process string content from a YAML string or file.

Parameters
Property Description
$text
string
Returns
string

public prerender (mixed $data) : mixed

Pre-process the data that will be rendered to a YAML string or file.

Parameters
Property Description
$data
mixed
Returns
mixed

public process (mixed $parsed) : mixed

Post-process the parsed content from a YAML string or file.

Parameters
Property Description
$parsed
mixed
Returns
mixed

public render (string $yaml) : string

Post-process a rendered YAML string or file.

Parameters
Property Description
$yaml
string
Returns
string
Copyright © 2024 Winter CMS