mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
68f6eaa663
Content blocks and other DataObjects that contain HTMLText fields are also used in the 'Dependent pages' report for each page in the CMS, however these objects may have neither a Title field, nor a name to describe them. Instead of showing an empty field in the Title column for this table, we can instead show "Untitled " with the localised singular name appended.
19 lines
418 B
PHP
19 lines
418 B
PHP
<?php
|
|
|
|
namespace SilverStripe\CMS\Tests\Model;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class SiteTreeBacklinksTestContentObject extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'BacklinkContent';
|
|
|
|
private static $db = array(
|
|
'Title' => 'Text',
|
|
'Content' => 'HTMLText',
|
|
);
|
|
|
|
private static $singular_name = 'Backlink test content object';
|
|
}
|