AfxTemplateGenerator
class AfxTemplateGenerator extends GeneratorService implements SitePackageGeneratorInterface (View source)
Service to generate site packages
Properties
protected PackageManager | $packageManager | ||
protected SimpleTemplateRenderer | $simpleTemplateRenderer | ||
protected ContentDimensionRepository | $contentDimensionRepository |
Methods
Generate a site package and fill it with boilerplate data.
Generate a "Sites.xml" for the given package and name.
Generate basic root Fusion file.
Render the whole directory of the fusion part
Generate site node name based on the given package key
Generate a example NodeTypes.yaml
Generate additional folders for site packages.
returns resource path for the generator
returns the human readable name of the generator
Details
array
generateSitePackage(string $packageKey, string $siteName)
Generate a site package and fill it with boilerplate data.
protected void
generateSitesXml(string $packageKey, string $siteName)
Generate a "Sites.xml" for the given package and name.
protected void
generateSitesRootFusion(string $packageKey, string $siteName)
Generate basic root Fusion file.
protected void
generateSitesFusionDirectory(string $packageKey, string $siteName)
Render the whole directory of the fusion part
protected string
generateSiteNodeName(string $packageKey)
Generate site node name based on the given package key
protected void
generateNodeTypesConfiguration(string $packageKey)
Generate a example NodeTypes.yaml
protected void
generateAdditionalFolders(string $packageKey)
Generate additional folders for site packages.
protected string
getResourcePathForFile(string $pathToFile)
returns resource path for the generator
string
getGeneratorName()
returns the human readable name of the generator