Cms\Contracts\CmsObject

Source: ~/modules/cms/contracts/CmsObject.php

Public methods

public string getBaseFileName()

Returns the file name without the extension.

public string getContent()

Returns the file content.

public string getFileName()

Returns the file name.

public string getFilePath(string $fileName=NULL)

Returns the local file path to the template.

Parameters
  • string $fileName

public string getTwigCacheKey()

Returns the key used by the Twig cache.

public string getTwigContent()

Returns the Twig content string.

public static mixed load(string $hostObj, string $fileName)

Loads the template.

Parameters
  • string $hostObj
  • string $fileName

public static mixed loadCached(string $hostObj, string $fileName)

Loads and caches the template.

Parameters
  • string $hostObj
  • string $fileName