/**
  * Get action for publishing
  *
  * @param File $record
  * @return FormAction
  */
 protected function getUnpublishAction($record)
 {
     // Check if record is unpublishable
     if (!$record || !$record->isPublished() || !$record->canUnpublish()) {
         return null;
     }
     // Build action
     $unpublishText = _t('SilverStripe\\AssetAdmin\\Controller\\AssetAdmin.UNPUBLISH_BUTTON', 'Unpublish');
     return FormAction::create('unpublish', $unpublishText)->setIcon('cancel-circled');
 }