Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function updateCMSFields(FieldList $fields) |
||
31 | { |
||
32 | if (!Config::inst()->get(VersionFeed::class, 'allchanges_enabled')) { |
||
33 | return; |
||
34 | } |
||
35 | |||
36 | $fields->addFieldToTab( |
||
37 | 'Root.Access', |
||
38 | FieldGroup::create(new CheckboxField('AllChangesEnabled', $this->owner->fieldLabel('AllChangesEnabled'))) |
||
39 | ->setTitle(_t(__CLASS__ . '.ALLCHANGES', 'All page changes')) |
||
40 | ->setDescription(_t( |
||
41 | 'SilverStripe\\VersionFeed\\VersionFeed.Warning', |
||
42 | "Publicising the history will also disclose the changes that have at the time been protected " . |
||
43 | "from the public view." |
||
44 | )) |
||
48 |