Meta
A snippet of content related to an article, for example the published date.
Classname
Photon\CmsEngine\Model\Element\Meta
Attributes
Attribute | Type | Description |
---|---|---|
$value | string | The value of the metadata defined |
$title | string | The label for the metadata defined |
$type | string | The 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);