Cms\Classes\Meta

Overview

Meta is used for interacting with YAML files

Extends
Implements
  • Cms\Contracts\CmsObject
  • Stringable
  • JsonSerializable
  • Illuminate\Contracts\Support\Jsonable
  • Illuminate\Contracts\Support\Arrayable
  • ArrayAccess

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected string $dirName

dirName associated with the model, eg: pages.

protected array $contentDataCache

contentDataCache store used by parseContent method.

protected array $allowedExtensions

allowedExtensions as file extensions.

protected string $defaultExtension

defaultExtension as file extension.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public __construct()

public __construct(): void

{@inheritDoc}

public toCompiled()

public toCompiled(): string 

toCompiled the content for this CMS object, used by the theme logger.

Show inherited public methods

Inherited Public Methods

Protected Methods

protected parseContent()

protected parseContent(): array|null 

parseContent processes the content attribute to an array of menu data.

protected renderContent()

protected renderContent(): string 

renderContent (meta data) as a content string in YAML format.

Show inherited protected methods

Inherited Protected Methods