src/VersionedGridFieldItemRequest.php
protected function addUnversionedButtons(DataObject $record, FieldList $actions)
    {
        if (!$record->canEdit()) {
            return;
        }
        $saveAction = $actions->fieldByName('action_doSave');
        if (!$saveAction) {
            return;
        }
        if (!$this->record->ID) {
            return;
        }
        $saveAction->setTitle(_t(
            __CLASS__ . '.BUTTONAPPLYCHANGES',
            'Apply changes'
        ))->addExtraClass('btn-primary font-icon-save');
    }
protected function addUnversionedButtons(DataObject $record, FieldList $actions)
    {
        if (!$record->canEdit()) {
            return;
        }
        $saveAction = $actions->fieldByName('action_doSave');
        if (!$saveAction) {
            return;
        }
        if (!$this->record->ID) {
            return;
        }
        $saveAction->setTitle(_t(
            __CLASS__ . '.BUTTONAPPLYCHANGES',
            'Apply changes'
        ))->addExtraClass('btn-primary font-icon-save');
    }
protected function addUnversionedButtons ( DataObject $ record , FieldList $ actions ) { if ( ! $ record -> canEdit ( ) ) { return ; } $ saveAction = $ actions -> fieldByName ( 'action_doSave' ) ; if ( ! $ saveAction ) { return ; } if ( ! $ this -> record -> ID ) { return ; } $ saveAction -> setTitle ( _t ( __CLASS__ . '.BUTTONAPPLYCHANGES' , 'Apply changes' ) ) -> addExtraClass ( 'btn-primary font-icon-save' ) ; }
Getting buttons that are for unversioned objects

@param DataObject $record
@param FieldList $actions
Getting buttons that are for unversioned objects