PHPackages                             lekoala/silverstripe-cms-actions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lekoala/silverstripe-cms-actions

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

lekoala/silverstripe-cms-actions
================================

Add actions to your models in SilverStripe

2.0.1(2mo ago)39344.8k—8.1%18[3 issues](https://github.com/lekoala/silverstripe-cms-actions/issues)20MITPHPPHP ^8.3CI passing

Since Jan 14Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/lekoala/silverstripe-cms-actions)[ Packagist](https://packagist.org/packages/lekoala/silverstripe-cms-actions)[ GitHub Sponsors](https://github.com/lekoala)[ RSS](/packages/lekoala-silverstripe-cms-actions/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (12)Versions (55)Used By (20)

SilverStripe Cms Actions module
===============================

[](#silverstripe-cms-actions-module)

[![Build Status](https://github.com/lekoala/silverstripe-cms-actions/actions/workflows/ci.yml/badge.svg)](https://github.com/lekoala/silverstripe-cms-actions/actions)[![Build Status](https://camo.githubusercontent.com/4a8ef056fb60a916628fcbb4a06056acebef10d80beebf8be4525c1ef69be248/68747470733a2f2f6170702e7472617669732d63692e636f6d2f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/lekoala/silverstripe-cms-actions)[![scrutinizer](https://camo.githubusercontent.com/0a4bdce8d36c2076abdf854af049ce7dae9921209dc1b74fb54d864d19209bfc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lekoala/silverstripe-cms-actions/)[![Code coverage](https://camo.githubusercontent.com/58acbdddf40d560cef1e9c4d0448def64c9ee7ca8a5a524f8af7fd43fe25d227/68747470733a2f2f636f6465636f762e696f2f67682f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/lekoala/silverstripe-cms-actions)

[![Latest Stable Version](https://camo.githubusercontent.com/b3e86d9bf775277ee298756c1bbc7cb99e6b822d8cbff181f0ffabc754350b3e/68747470733a2f2f706f7365722e707567782e6f72672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f76657273696f6e)](https://packagist.org/packages/lekoala/silverstripe-cms-actions)[![Latest Unstable Version](https://camo.githubusercontent.com/50f9815b5aa725c5808e0b068dccfe552f9597142af1693f7c18cef93673f2cd/68747470733a2f2f706f7365722e707567782e6f72672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f762f756e737461626c65)](//packagist.org/packages/lekoala/silverstripe-cms-actions)[![Total Downloads](https://camo.githubusercontent.com/ba5e0031bfdd359d40c6d90451c6e36f848df410375f74701bdf4c75057943c2/68747470733a2f2f706f7365722e707567782e6f72672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f646f776e6c6f616473)](https://packagist.org/packages/lekoala/silverstripe-cms-actions)[![License](https://camo.githubusercontent.com/6a4f29a0e4f0aac65717c7aca990b8a526276ce2eb667f6f13c64a1be0486142/68747470733a2f2f706f7365722e707567782e6f72672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f6c6963656e7365)](https://packagist.org/packages/lekoala/silverstripe-cms-actions)[![Monthly Downloads](https://camo.githubusercontent.com/790ec631102e3bcc89bd7c8f62aa8acf2ed0c4d50b634b2196a8788c923f3ba6/68747470733a2f2f706f7365722e707567782e6f72672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f642f6d6f6e74686c79)](https://packagist.org/packages/lekoala/silverstripe-cms-actions)[![Daily Downloads](https://camo.githubusercontent.com/3541fd7df311a5dfa2441e7735d9e30b3d50d5503d4f28bcf0a7a5e25cfde228/68747470733a2f2f706f7365722e707567782e6f72672f6c656b6f616c612f73696c7665727374726970652d636d732d616374696f6e732f642f6461696c79)](https://packagist.org/packages/lekoala/silverstripe-cms-actions)

Intro
-----

[](#intro)

For those of you missing betterbuttons :-) Because let's face it, adding custom actions in SilverStripe is a real pain.

How does it work ?
------------------

[](#how-does-it-work-)

Well it's actually quite simple. First of all, we improve the `GridFieldItemRequest` with our `ActionsGridFieldItemRequest`. This is heavily inspired by betterbuttons module. Thanks to this extension, our actions defined in `getCMSActions` will appear properly.

Then, we forward our requests to the model (a button declared on Member call the ItemRequest handler which forwards the action to the Member model).

We can declare things in two functions:

- As actions in getCMSActions : these are displayed next to the regular "save" button

[![custom action](docs/custom-action.png "custom action")](docs/custom-action.png)

- As utilities in getCMSUtils : these are displayed on the top right corner, next to the tabs

[![cms utils](docs/cms-utils.png "cms utils")](docs/cms-utils.png)

LeftAndMain support
-------------------

[](#leftandmain-support)

This module is mainly targeted at dealing with actions on regular DataObjects. However, in order to support actions on pages, the `ActionsGridFieldItemRequest`is also applied on `LeftAndMain`. Therefore, actions defined on pages should work properly as well.

Add your buttons
----------------

[](#add-your-buttons)

### Actions

[](#actions)

Simply use getCMSActions on your DataObjects and add new buttons for your DataObjects! For this, simply push new actions. The CustomAction class is responsible of calling the action defined on your DataObject.

In the following example, we call doCustomAction. The return string is displayed as a notification. If not return string is specified, we display a generic message "Action {action} done on {record}".

```
public function getCMSActions()
{
    $actions = parent::getCMSActions();

    $actions->push(new CustomAction("doCustomAction", "My custom action"));

    return $actions;
}

public function doCustomAction() {
    return 'Done!';
}
```

If it throws an exception or return a false bool, it will show an error message

```
public function doCustomAction() {
    throw new Exception("Show this error");
    return false;
}
```

CustomActions are buttons and submitted through ajax. If it changes the state of your record you may need to refresh the UI, but be careful of not losing any unsaved data.

```
$myAction->setShouldRefresh(true);
```

You can also redirect to a custom URL (eg: to the main list) after the action

```
$fields->push($doRedirect = new CustomAction('doRedirect', 'Redirect'));
$doRedirect->setRedirectURL("/admin/my_section/my_model");
```

Sometimes, you don't want buttons, but links. Use CustomLink instead. This is useful to, say, download an excel report or a pdf file.

```
public function getCMSActions()
{
    $actions = parent::getCMSActions();

    $actions->push($downloadExcelReport = new CustomLink('downloadExcelReport','Download report'));
    $downloadExcelReport->setButtonIcon(SilverStripeIcons::ICON_EXPORT);

    return $actions;
}

public function downloadExcelReport() {
    echo "This is the report";
    die();
}
```

Please note that are we use a die pattern that is not very clean, but you can very well return a HTTPResponse object instead.

CustomLink use by default ajax navigation. You can use `setNoAjax(true)` to prevent this. CustomLink can open links in a new window. You can use `setNewWindow(true)` to enable this. CustomLink calls by default an action on the model matching its name. But really you can point it to anything, even an external link using `setLink('https//www.silverstripe.org')`.

#### Confirm actions

[](#confirm-actions)

If an action is potentially dangerous or avoid misclicks, you can set a confirmation message using `setConfirmation('Are you sure')` or simply pass `true` for a generic message.

### Decoration &amp; Placement

[](#decoration--placement)

You can set icon. See SilverStripeIcons class for available icons. We use base silverstripe icons.

```
$downloadExcelReport->setButtonIcon(SilverStripeIcons::ICON_EXPORT);
```

The native `setIcon` from SilverStripe is also supported for `FormAction`.

You can also put buttons into a drop-up menu.

[![Drop-up example](docs/drop-up.gif "Drop-up example")](docs/drop-up.gif)

```
$myAction->setDropUp(true);
```

### Last icon

[](#last-icon)

You can use an unlimited set of icons using [last-icon](https://github.com/lekoala/last-icon).

Simply make sure you included the required javascript (the css is already included by default as it is limited and has no side-effect):

```
Requirements::javascript("https://cdn.jsdelivr.net/npm/last-icon@2/last-icon.min.js");
```

or with yml

```
SilverStripe\Admin\LeftAndMain:
  extra_requirements_js:
    - "https://cdn.jsdelivr.net/npm/last-icon@2/last-icon.min.js"
```

And add the icon of your choice:

```
$my_action->setLastIcon('star');
```

You can pass additional parameters or pass directly an array.

#### Grouping

[](#grouping)

Buttons can be grouped in the same manner as the "Save"/"Save and close" usually are when enclosed in `ActionButtonsGroup` container.

[![Grouping example](docs/grouping.gif "Grouping example")](docs/grouping.gif)

```
$groupedButtons = [
    CustomAction::create("doAction1", "Action1")
        ->addExtraClass('btn-outline-info')
        ->removeExtraClass('btn-info'),
    CustomAction::create("doAction2", "Action2")
        ->addExtraClass('btn-outline-info')
        ->removeExtraClass('btn-info'),
];
$btnGroup = ActionButtonsGroup::create($groupedButtons);
$actions->push($btnGroup);
```

### Utils

[](#utils)

Declare getCMSUtils or use updateCMSUtils in your extensions. These utilities will appear next to the tabs. They are ideal to provide some extra information or navigation. I've used these to add shortcuts, timers, dropdowns navs...

```
public function getCMSUtils()
{
    $fields = new FieldList();
    $fields->push(new LiteralField("LastLoginInfo", "Last login at " . $this->LastLogin));
    return $fields;
}
```

### Save and close

[](#save-and-close)

Add a default "save and close" or "create and close" button to quickly add DataObjects.

This feature can be disabled with the `enable_save_close` config flag

[![save and close](docs/save-and-close.png "save and close")](docs/save-and-close.png)

### Delete action is on the right

[](#delete-action-is-on-the-right)

Really I don't know who thought that having delete button next to a save button was a good idea, but I'd rather have it on the right end side.

This feature can be disabled with the `enable_delete_right` config flag

[![delete btn](docs/delete-btn.png "delete btn")](docs/delete-btn.png)

### Prev/next support

[](#prevnext-support)

SilverStripe 4.4 introduced a more refined UI for prev/next records. However, it only allows navigation and does not support "save and next" or "previous and next" which is useful when you edit records in a row.

This feature can be disabled with the `enable_save_prev_next` config flag

[![save prev next](docs/save-prev-next.png "save prev next")](docs/save-prev-next.png)

You can also use the HasPrevNextUtils trait to add navigation in your utils as well.

### Configure UI options per record

[](#configure-ui-options-per-record)

Instead of using the global config flags, you can configure the form based on the record being edited.

Your DataObject needs to implement `getCMSActionsOptions`. This function should return an array with the following keys:

- save\_close: true/false
- save\_prev\_next: true/false
- delete\_right: true/false

This will be use instead of the default global options if provided.

### Custom prev/next record

[](#custom-prevnext-record)

By implementing PrevRecord and NextRecord and your DataObject, you can override the default logic provided by SilverStripe.

Prev/next records can be tricky to manage, if you have grid state issues, using nested gridfields and stuff like that. Using PrevRecord and NextRecord provide a simple mean without dealing with state problems.

Adding actions to a GridField row
---------------------------------

[](#adding-actions-to-a-gridfield-row)

You can create new row actions by extending the `GridFieldRowButton`

All actions will be stored in a new "Actions" column that supports multiple actions. This can be used, for example, to download files, like invoices, etc directly from a GridField.

For example, you can do this:

```
class MyRowAction extends GridFieldRowButton
{
    protected $fontIcon = 'torso';

    public function getActionName()
    {
        return 'my_action';
    }

    public function getButtonLabel()
    {
        return 'My Action';
    }

    public function doHandle(GridField $gridField, $actionName, $arguments, $data)
    {
        $item = $gridField->getList()->byID($arguments['RecordID']);
        if (!$item) {
            return;
        }
        // Do something with item
        // Or maybe download a file...
        return Controller::curr()->redirectBack();
    }
}
```

And use it in your ModelAdmin like so:

```
public function getGridFieldFrom(Form $form)
{
    return $form->Fields()->dataFieldByName($this->getSanitisedModelClass());
}

public function getEditForm($id = null, $fields = null)
{
    $form = parent::getEditForm($id, $fields);

    $gridfield = $this->getGridFieldFrom($form);

    if ($this->modelClass == MyModel::class) {
        $gridfield->getConfig()->addComponent(new MyRowAction());
    }

    return $form;
}
```

Adding links to GridField
-------------------------

[](#adding-links-to-gridfield)

If actions are not your cup of tea, you can also add links to your GridField.

Again, it will be added to the Actions column.

This acts like a CustomLink describe above, so if we go back to our report example, we get this:

```
$gridfield->getConfig()->addComponent(new GridFieldCustomLink('downloadExcelReport', 'Download Report'));
```

[![gridfield row actions](docs/gridfield-row-actions.png "gridfield row actions")](docs/gridfield-row-actions.png)

For security reasons, the action MUST be declared in getCMSActions. Failing to do so will return a helpful error message. If you do not want to display the button in the detail form, simply set a d-none on it:

```
$actions->push($downloadExcelReport = new CustomLink('downloadExcelReport', 'Download report'));
$downloadExcelReport->addExtraClass('d-none');
//or simply...
//$downloadExcelReport->setHidden();
```

Adding buttons to a whole GridField
-----------------------------------

[](#adding-buttons-to-a-whole-gridfield)

This is done using GridFieldTableButton

```
class MyGridButton extends GridFieldTableButton
{
    protected $buttonLabel = 'Do stuff';
    protected $fontIcon = 'do_stuff';

    public function handle(GridField $gridField, Controller $controller)
    {
    }
}
```

This class can then be added as a regular GridField component

Adding actions in getCMSFields
------------------------------

[](#adding-actions-in-getcmsfields)

If you have a lot of actions, sometimes it might make more sense to add it to your cms fields. I've used this to provide template files for instance that needs to be uploaded.

This is done using the `CmsInlineFormAction` class. Please note that the `doCustomAction` function must be declared on your controller, not on the model.

This is due to the fact that we are not submitting the form, therefore we are not processing the record with our `ActionsGridFieldItemRequest`.

```
public function getCMSFields()
{
    $fields = parent::getCMSFields();

    $fields->addFieldToTab('Root.Actions', new CmsInlineFormAction('doCustomAction', 'Do this'));

    return $fields;
}
```

In your admin class

```
// don't forget to add me to allowed_actions as well
function doCustomAction()
{
    // do something here
    return $this->redirectBack();
}
```

### Posting with inline actions

[](#posting-with-inline-actions)

You can also post the whole form to another location with `CmsInlineFormAction`.

Simply do this

```
    $fields->addFieldToTab('Root.MyTab', $myAction = new CmsInlineFormAction("myAction", "My Action"));
    $myAction->setPost(true);
```

And add to your admin class

```
    public function myAction()
    {
        $RecordID = $this->getRequest()->getVar("ID");

        $message = "My action done";
        $response = Controller::curr()->getResponse();
        $response->addHeader('X-Status', rawurlencode($message));

        return $response;
    }
```

This will trigger the Save action (through ajax) do your new endpoint, allowing custom behaviour and feedback messages.

Show messages instead of actions
--------------------------------

[](#show-messages-instead-of-actions)

If an action is not available/visible, the user may wonder why. Obviously you can display a disabled button, but you can also display a message instead of the button. This can be done like so:

```
$actions->push(LiteralField::create('MyCustomAction', "Action not available"));
```

The `bb-align` class ensure the text is properly aligned with the buttons.

Extensions support
------------------

[](#extensions-support)

If your extensions depend on this module, you can play with `DataObject::onBeforeUpdateCMSActions` and `DataObject::onAfterUpdateCMSActions` extension hook to add your own buttons. This is called after all buttons have been defined.

See for instance how it's done in my [softdelete module](https://github.com/lekoala/silverstripe-softdelete).

Tab tracking
------------

[](#tab-tracking)

This extension will also track the active tab when you call save and next / prev and next. This allows editing stuff in a row and keep the same tab.

When clicking on the main tabs, it will also update the url. This way, when you reload the page, the good tab will reopen.

This also allows targeting specific pages with a given tab with links.

Profile and LeftAndMain extension support
-----------------------------------------

[](#profile-and-leftandmain-extension-support)

Since we apply our extension on `SilverStripe\Admin\LeftAndMain` actions declared in updateCMSActions/getCMSActions are visible in the profile for example.

The issue here is that the `updateItemEditForm` is never called (this is only called by `GridFieldDetailForm_ItemRequest`, so when you are in a GridField item... in ModelAdmin for instance).

For instance, this means that you actions are displayed before the 'save' button provided by the Profile controller. Currently, this module fixes this with a bit of css.

Progressive actions
-------------------

[](#progressive-actions)

Since version 1.2, this module supports progressive actions. Progressive actions are buttons that use a progress bar to display what is happening. Under the hood, it translates to multiple ajax calls to the same handler function and passing the following post parameters:

- progress\_step: the current step
- progress\_total: this can be either set in advance or provided by the handler function

[![progressive action](docs/progressive-action.gif "progressive action")](docs/progressive-action.gif)

Progressive actions are supported for `GridFieldTableButton` and `CustomLink`.

Here is a sample implementation. The action needs to return an array with the following keys:

- progress\_step: the updated step. Usually +1.
- progress\_total: the total number of records. It should only be computed once (on the initial run) when none is provided.
- progress\_id: you can return a unique id that will be passed along on each call
- reload: should we reload at the end ?
- message: each run can display a short lived notification with specific text
- label: the end label (by default : Completed).

```
class MyProgressiveTableButton extends GridFieldTableButton
{
    public function __construct($targetFragment = "buttons-before-right", $buttonLabel = null)
    {
        $this->progressive = true;
        parent::__construct($targetFragment, $buttonLabel);
    }

    public function handle(GridField $gridField, Controller $controller)
    {
        $step = (int) $controller->getRequest()->postVar("progress_step");
        $total = (int) $controller->getRequest()->postVar("progress_total");
        if (!$total) {
            $total = $list->count();
        }
        $i = 0;
        $res = null;
        foreach ($list as $rec) {
            if ($i < $step) {
                $i++;
                continue;
            }
            $res = "Processed record $i";
            break;
        }
        $step++;
        return [
            'progress_step' => $step,
            'progress_total' => $total,
            'reload' => true,
            'message' => $res,
        ];
    }
}
```

Modal action
------------

[](#modal-action)

What if you need to ask some input from your user when clicking a button ? Like a 'Send Message' button which would display a nice textarea ?

This is covered as part of another module:

It requires a modal to be displayed (and modals are a bit of a pain to setup in SilverStripe 4, so I created a module to make that much easier). When using both modules it's easy to have actions that open a modal.

Collapsing icons
----------------

[](#collapsing-icons)

The icons collapse in mobile view. If you have your own buttons, you can add the `btn-mobile-collapse` class so that they do the same. This will be added by default if you set an icon on your buttons.

You can also hide buttons completely with `btn-mobile-hidden`

[![btn mobile collapse](docs/btn-mobile-collapse.png "btn mobile collapse")](docs/btn-mobile-collapse.png)

Sponsored by
------------

[](#sponsored-by)

This module is kindly sponsored by [RESTRUCT](restruct.nl)

Compatibility
-------------

[](#compatibility)

Branch 1 - Tested with 5.1 but should work on any ^5.1 projects

Branch 2/master - SilverStripe 6+

Maintainer
----------

[](#maintainer)

LeKoala -

###  Health Score

67

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 83.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Recently: every ~59 days

Total

54

Last Release

43d ago

Major Versions

1.7.11 → 2.0.02025-09-26

1.7.12 → 2.0.12026-04-30

PHP version history (4 changes)1.0PHP &gt;=7.2

1.3.8PHP ^7.4 || ^8.0

1.6.0PHP ^8.1

2.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/250762?v=4)[Thomas Portelange](/maintainers/lekoala)[@lekoala](https://github.com/lekoala)

---

Top Contributors

[![lekoala](https://avatars.githubusercontent.com/u/250762?v=4)](https://github.com/lekoala "lekoala (176 commits)")[![gurucomkz](https://avatars.githubusercontent.com/u/12028675?v=4)](https://github.com/gurucomkz "gurucomkz (6 commits)")[![wernerkrauss](https://avatars.githubusercontent.com/u/1043925?v=4)](https://github.com/wernerkrauss "wernerkrauss (5 commits)")[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (4 commits)")[![Firesphere](https://avatars.githubusercontent.com/u/680570?v=4)](https://github.com/Firesphere "Firesphere (3 commits)")[![TheBnl](https://avatars.githubusercontent.com/u/1334195?v=4)](https://github.com/TheBnl "TheBnl (2 commits)")[![RoyalPulp](https://avatars.githubusercontent.com/u/2283640?v=4)](https://github.com/RoyalPulp "RoyalPulp (2 commits)")[![xini](https://avatars.githubusercontent.com/u/1152403?v=4)](https://github.com/xini "xini (2 commits)")[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (2 commits)")[![LiamKearn](https://avatars.githubusercontent.com/u/76269376?v=4)](https://github.com/LiamKearn "LiamKearn (2 commits)")[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (1 commits)")[![a2nt](https://avatars.githubusercontent.com/u/672794?v=4)](https://github.com/a2nt "a2nt (1 commits)")[![bimthebam](https://avatars.githubusercontent.com/u/3392650?v=4)](https://github.com/bimthebam "bimthebam (1 commits)")[![3Dgoo](https://avatars.githubusercontent.com/u/2616373?v=4)](https://github.com/3Dgoo "3Dgoo (1 commits)")[![purplespider](https://avatars.githubusercontent.com/u/329880?v=4)](https://github.com/purplespider "purplespider (1 commits)")[![samandeggs](https://avatars.githubusercontent.com/u/5750792?v=4)](https://github.com/samandeggs "samandeggs (1 commits)")[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (1 commits)")

---

Tags

betterbuttonsdataobjectshacktoberfesthacktoberfest2021phpsilverstripesilverstripe-4silverstripe-5silverstripe-6silverstripe-cms-actionssilverstripe-modulesilverstripecmsmoduleformbuttonsactionsbetterbuttons

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/lekoala-silverstripe-cms-actions/health.svg)

```
[![Health](https://phpackages.com/badges/lekoala-silverstripe-cms-actions/health.svg)](https://phpackages.com/packages/lekoala-silverstripe-cms-actions)
```

###  Alternatives

[lekoala/silverstripe-softdelete

Soft delete extension for SilverStripe

11236.3k](/packages/lekoala-silverstripe-softdelete)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
