'Boolean(true)' ); private static $defaults = array( 'AllChangesEnabled' => true ); public function updateFieldLabels(&$labels) { $labels['AllChangesEnabled'] = _t(__CLASS__ . '.ALLCHANGESLABEL', 'Make global changes feed public'); } public function updateCMSFields(FieldList $fields) { if (!Config::inst()->get(VersionFeed::class, 'allchanges_enabled')) { return; } $fields->addFieldToTab( 'Root.Access', FieldGroup::create(new CheckboxField('AllChangesEnabled', $this->owner->fieldLabel('AllChangesEnabled'))) ->setTitle(_t(__CLASS__ . '.ALLCHANGES', 'All page changes')) ->setDescription(_t( 'SilverStripe\\VersionFeed\\VersionFeed.Warning', "Publicising the history will also disclose the changes that have at the time been protected " . "from the public view." )) ); } }