Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | public function updateCMSFields(FieldList $fields) |
||
18 | { |
||
19 | |||
20 | $CanonicalDomainField = TextField::create('CanonicalDomain') |
||
21 | ->setDescription(_t(__CLASS__ . '.InfoField', 'The canonical domain will be added to the HTML head. It can be overriden per Page in ') . _t('SilverStripe\CMS\Model\SiteTree.MetadataToggle', 'Metadata') . '.') |
||
22 | ->setAttribute('placeholder', _t(__CLASS__ . '.CanonicalDomainDescription', 'https://www.example.com')); |
||
23 | |||
24 | $fields->addFieldToTab('Root.Canonical', $CanonicalDomainField); |
||
25 | |||
26 | return $fields; |
||
27 | } |
||
29 |