Skip to main content

Modular

Generic modular page for use with Jadu CMS Homepage content type.

Classname

Photon\CmsEngine\Model\Element\Modular

Attributes

AttributeTypeDescription
$titlestringThe title of the page
$homepageHomepageThe modular content block of the page
$supplementsarrayArray of supplements associated with this article
$navigationarrayArray of navigation links
$documentsarrayArray of document records associated with this page
<?php

use Photon\CmsEngine\Model\Element\Modular;

$modular = new Modular();
$modular->setHomepage($homepage);
$modular->setTitle($homepage->getTitle());
$modular->setSupplements($this->getSupplements($homepage));