FormDefinitionMetadataExtractor

final readonly class \TYPO3\CMS\Form\Storage\FormDefinitionMetadataExtractor

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.

Table of Contents

Methods

extract()  : array<string, string>

Methods

extract()

public extract(string $maybeRawFormDefinition) : array<string, string>

Parameters

$maybeRawFormDefinition : string

Return values

array<string, string>
On this page