FormDefinitionMetadataExtractor
final readonly class \
Reads the metadata of a form definition file, such as identifier and label, without parsing the whole, potentially large, file.
Each metadata property is a top-level key. Its line and all following indented lines are parsed as YAML, so any scalar style is supported, including multi-line values, quoting and comments.
Internal
Table of Contents
Methods
- extract() : array<string, string>
Methods
extract()
public
extract(string $maybeRawFormDefinition) : array<string, string>
Parameters
- $maybeRawFormDefinition : string