Source of file PageListExtension.php
Size: 0,627 Bytes - Last Modified: 2021-12-23T10:25:20+00:00
/var/www/docs.ssmods.com/process/src/code/extensions/PageListExtension.php
1234567891011121314151617181920212223242526272829 | <?php /** * @author <marcus@symbiote.com.au> * @license BSD License http://www.silverstripe.org/bsd-license */ class PageListExtension extends SiteTreeExtension { /** * Return an array that represents how this page should be stored for favourites */ public function updateMapForList(&$d) { if (!isset($d['Title'])) { $d['Title'] = $this->owner->Title; } if (!isset($d['ID'])) { $d['ID'] = $this->owner->ID; } if (!isset($d['Content'])) { $d['Content'] = $this->owner->obj('Content')->forTemplate(); } if (!isset($d['Link'])) { $d['Link'] = $this->owner->AbsoluteLink(); } } } |