TractorCow\Fluent\Forms\BaseAction
Base action for acting on a single locale / record pair
Note: Any of these actions can be applied either to a list of locales
on a single record, or a list of records in the current locale.
Synopsis
class BaseAction
implements
GridField_ActionProvider,GridField_ActionMenuItem
{
- // methods
- protected abstract GridField_FormAction|null getButtonAction()
- protected abstract mixed appliesToRecord()
- public array|null getExtraData()
- public null|string getGroup()
- protected array getRecordAndLocale()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
Implements
- SilverStripe\Forms\GridField\GridField_ActionProvider
- SilverStripe\Forms\GridField\GridField_ActionMenuItem
Methods
protected
- appliesToRecord() — Check if this item is enabled for the given record in locale
- getButtonAction()
- getRecordAndLocale() — Given a gridfield, and either an ID or record, return a list with both the record being localised, and the locale object