ContentTypesParser
class ContentTypesParser extends BaseParser (View source)
Properties
protected FileLocator | $fileLocator | from BaseParser | |
protected PathResolver | $pathResolver | from BaseParser | |
protected string | $initialFilename | from BaseParser | |
protected string[] | $parsedFilenames | from BaseParser |
Methods
__construct(string $projectDir, Collection $generalConfig, string $defaultLocale, string|null $locales = null, string $filename = 'contenttypes.yaml')
No description
Collection
parseConfigYaml(string $filename, bool $ignoreMissing = false)
Read and parse a YAML configuration file.
from
BaseParser
Collection
parse()
Read and parse the contenttypes.yml configuration file.
ContentType|null
parseContentType($key, array $contentType)
Parse a single Content Type configuration array.
array
parseFieldsAndGroups(array $fields)
Parse a Content Type's field and determine the grouping.
Details
__construct(string $projectDir, Collection $generalConfig, string $defaultLocale, string|null $locales = null, string $filename = 'contenttypes.yaml')
protected Collection
parseConfigYaml(string $filename, bool $ignoreMissing = false)
Read and parse a YAML configuration file.
If filename doesn't exist and/or isn't readable, we attempt to locate it in our config folder. This way you can pass in either an absolute filename or simply 'menu.yaml'.
array
getParsedFilenames()
getInitialFilename()
getFilenameLocalOverrides()
Collection
parse()
Read and parse the contenttypes.yml configuration file.
protected ContentType|null
parseContentType($key, array $contentType)
Parse a single Content Type configuration array.
protected array
parseFieldsAndGroups(array $fields)
Parse a Content Type's field and determine the grouping.