| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function updateSettingsFields(FieldList $fields) |
||
| 21 | { |
||
| 22 | $helpText = _t( |
||
| 23 | 'SiteTree.SHOW_PAGE_UTILITIES_HELP', |
||
| 24 | 'You can disable page utilities (print, share, etc) for this page' |
||
| 25 | ); |
||
| 26 | |||
| 27 | $fields->addFieldsToTab( |
||
| 28 | 'Root.Settings', |
||
| 29 | array( |
||
| 30 | LiteralField::create('PageUtilitiesHelp', $helpText), |
||
| 31 | CheckboxField::create('ShowPageUtilities', $this->owner->fieldLabel('ShowPageUtilities')) |
||
| 32 | ) |
||
| 41 |