ZoneTemplatePlaceholders
class ZoneTemplatePlaceholders (View source)
Expands the [ZONE], [NS1], [SERIAL] style placeholders of zone template records.
Methods
array
replaceWithTemplatePlaceholders(string $domain, array|ArrayAccess $record, array $options = [])
Replace the zone name and site-specific values in a zone's records with template placeholders, for saving a zone as a template.
string
parseTemplateValue(string $val, string $domain, string|null $recordType = null)
Parse string and substitute domain and serial
Details
__construct(ConfigurationInterface $config, DomainParsingService $domainParser)
No description
array
replaceWithTemplatePlaceholders(string $domain, array|ArrayAccess $record, array $options = [])
Replace the zone name and site-specific values in a zone's records with template placeholders, for saving a zone as a template.
string
parseTemplateValue(string $val, string $domain, string|null $recordType = null)
Parse string and substitute domain and serial