SiteBaseValidator
final readonly class \
Validates the entry points of a site configuration, including the base of every base variant.
A Site object only validates the base of the base variant matching the current context, which differs between deployment, CLI and web requests. Therefore, the base and the base of every base variant are validated on their own, for the site as well as for its languages.
The configuration is expected with all placeholders resolved.
Internal
Table of Contents
Methods
-
validate()
: array<int, array{type: class-string
, code: int, message: string, field: string} >
Methods
validate()
public
validate(string $identifier, int $rootPageId, array $configuration[, SiteSettings|null $settings = null ]) : array<int, array{type: class-string, code: int, message: string, field: string} >
Parameters
- $identifier : string
- $rootPageId : int
- $configuration : array
- $settings : SiteSettings|null = null