src/GridFieldArchiveAction.php
public function augmentColumns($gridField, &$columns)
    {
        $model = $gridField->getModelClass();
        $isModelVersioned = $model::has_extension(Versioned::class);
        if ($isModelVersioned) {
            $gridField->getConfig()->removeComponentsByType(GridFieldDeleteAction::class);
        }
        if (!in_array('Actions', $columns)) {
            $columns[] = 'Actions';
        }
    }
public function augmentColumns($gridField, &$columns)
    {
        $model = $gridField->getModelClass();
        $isModelVersioned = $model::has_extension(Versioned::class);
        if ($isModelVersioned) {
            $gridField->getConfig()->removeComponentsByType(GridFieldDeleteAction::class);
        }
        if (!in_array('Actions', $columns)) {
            $columns[] = 'Actions';
        }
    }
public function augmentColumns ( $ gridField , & $ columns ) { $ model = $ gridField -> getModelClass ( ) ; $ isModelVersioned = $ model :: has_extension ( Versioned :: class ) ; if ( $ isModelVersioned ) { $ gridField -> getConfig ( ) -> removeComponentsByType ( GridFieldDeleteAction :: class ) ; } if ( ! in_array ( 'Actions' , $ columns ) ) { $ columns [ ] = 'Actions' ; } }
Add a column 'Actions'

@param GridField $gridField
@param array $columns
Add a column Actions