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 | Type | Description |
---|---|---|
$text | string |
string
|
Returns
string
public prerender (mixed $data) : mixed
Pre-process the data that will be rendered to a YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$data | mixed |
mixed
|
Returns
mixed
public process (mixed $parsed) : mixed
Post-process the parsed content from a YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$parsed | mixed |
mixed
|
Returns
mixed
public render (string $yaml) : string
Post-process a rendered YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$yaml | string |
string
|
Returns
string
Copyright © 2023 Winter CMS