Skip to main content

ListItem

An array of records or articles.

Classname

Photon\CmsEngine\Model\Element\ListItem

Attributes

AttributeTypeDescription
$titlestringThe title of the list
$itemsarrayArray of article or link objects that make up this list
$typestringThe type of list, for example "record" or "article"
<?php

use Photon\CmsEngine\Model\Element\ListItem;

$list = new ListItem();
$list->setType('record');
$list->setItems($records);