silverstripe-cms/code/Model/SiteTreeLink.php
2023-01-17 12:31:51 +13:00

22 lines
472 B
PHP

<?php
namespace SilverStripe\CMS\Model;
use SilverStripe\ORM\DataObject;
/**
* Represents a link between a dataobject parent and a page in a HTML content area
*
* @method DataObject Parent() Parent object
* @method SiteTree Linked() Page being linked to
*/
class SiteTreeLink extends DataObject
{
private static $table_name = 'SiteTreeLink';
private static $has_one = [
'Parent' => DataObject::class,
'Linked' => SiteTree::class,
];
}