Skip to main content

Meta

A snippet of content related to an article, for example the published date.

Classname

Photon\CmsEngine\Model\Element\Meta

Attributes

AttributeTypeDescription
$valuestringThe value of the metadata defined
$titlestringThe label for the metadata defined
$typestringThe type of the value, for example "string" or "date"
<?php

use Photon\CmsEngine\Model\Element\Meta;

$meta = new Meta();
$meta->setTitle($title);
$meta->setValue($value);
$meta->setType($type);