SiteTreeBacklinksTest_DOD::updateCMSFields()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\CMS\Tests\Model;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\Forms\FieldList;
7
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
8
use SilverStripe\ORM\DataExtension;
9
10
class SiteTreeBacklinksTest_DOD extends DataExtension implements TestOnly
11
{
12
    private static $db = [
0 ignored issues
show
introduced by
The private property $db is not used, and could be removed.
Loading history...
13
        'ExtraContent' => 'HTMLText',
14
    ];
15
16
    public function updateCMSFields(FieldList $fields)
17
    {
18
        $fields->addFieldToTab("Root.Content", new HTMLEditorField("ExtraContent"));
19
    }
20
}
21