YamlProcessor
YAML processor abstract.
abstract class Winter\Storm\Parse\Processor\YamlProcessor
implements
Winter\Storm\Parse\Processor\Contracts\YamlProcessor
Provides base functionality for YAML processors, so that extended classes only need to overwrite the methods that they intend to actually use.
Methods
public preprocess ($text)
Pre-process string content from a YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$text | mixed |
mixed
|
Returns
mixed
public prerender ($data)
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 ($parsed)
Post-process the parsed content from a YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$parsed | mixed |
mixed
|
Returns
mixed
public render ($yaml)
Post-process a rendered YAML string or file.
Parameters
Property | Type | Description |
---|---|---|
$yaml | mixed |
mixed
|
Returns
mixed
Extended by
Class | Description |
---|---|
VersionYamlProcessor
|
"version.yaml" pre-processor class. |
Symfony3Processor
|
Symfony/Yaml 3 processor. |
← Previous page
Winter\Storm\Parse\Processor\Symfony3Processor
Next page →
Winter\Storm\Parse\Syntax\FieldParser
Copyright © 2024 Winter CMS