src/Extensions/CwpSiteTreeExtension.php
public function updateSettingsFields(FieldList $fields)
    {
        $helpText = _t(
            __CLASS__ . '.SHOW_PAGE_UTILITIES_HELP',
            'You can disable page utilities (print, share, etc) for this page'
        );

        $fields->addFieldsToTab(
            'Root.Settings',
            array(
                LiteralField::create('PageUtilitiesHelp', $helpText),
                CheckboxField::create('ShowPageUtilities', $this->owner->fieldLabel('ShowPageUtilities'))
            )
        );
    }
public function updateSettingsFields(FieldList $fields)
    {
        $helpText = _t(
            __CLASS__ . '.SHOW_PAGE_UTILITIES_HELP',
            'You can disable page utilities (print, share, etc) for this page'
        );

        $fields->addFieldsToTab(
            'Root.Settings',
            array(
                LiteralField::create('PageUtilitiesHelp', $helpText),
                CheckboxField::create('ShowPageUtilities', $this->owner->fieldLabel('ShowPageUtilities'))
            )
        );
    }
public function updateSettingsFields ( FieldList $ fields ) { $ helpText = _t ( __CLASS__ . '.SHOW_PAGE_UTILITIES_HELP' , 'You can disable page utilities (print, share, etc) for this page' ) ; $ fields -> addFieldsToTab ( 'Root.Settings' , array ( LiteralField :: create ( 'PageUtilitiesHelp' , $ helpText ) , CheckboxField :: create ( 'ShowPageUtilities' , $ this -> owner -> fieldLabel ( 'ShowPageUtilities' ) ) ) ) ; }
Modify the settings for a SiteTree

{@inheritDoc}

@param FieldList $fields
Modify the settings for a SiteTree