mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixed usage of deprecated FormField->describe() API
This commit is contained in:
parent
590027cfe3
commit
b29a7540a2
@ -2065,7 +2065,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
// "unpublish"
|
||||
$minorActions->push(
|
||||
FormAction::create('unpublish', _t('SiteTree.BUTTONUNPUBLISH', 'Unpublish'), 'delete')
|
||||
->describe(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'))
|
||||
->setDescription(_t('SiteTree.BUTTONUNPUBLISHDESC', 'Remove this page from the published site'))
|
||||
->addExtraClass('ss-ui-action-destructive')->setAttribute('data-icon', 'unpublish')
|
||||
);
|
||||
}
|
||||
@ -2075,7 +2075,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
// "rollback"
|
||||
$minorActions->push(
|
||||
FormAction::create('rollback', _t('SiteTree.BUTTONCANCELDRAFT', 'Cancel draft changes'), 'delete')
|
||||
->describe(_t('SiteTree.BUTTONCANCELDRAFTDESC', 'Delete your draft and revert to the currently published page'))
|
||||
->setDescription(_t('SiteTree.BUTTONCANCELDRAFTDESC', 'Delete your draft and revert to the currently published page'))
|
||||
->addExtraClass('delete')->setAttribute('data-icon', 'delete')
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user