SilverStripe\Versioned\VersionedGridFieldState\VersionedGridFieldState::getStatusFlags
A flag provides the user with additional data about the current item status, for example a "removed from draft" status. Each item can have more than one status flag. Returns a map of a unique key to a (localized) title for the flag. The unique key can be reused as a CSS class.
Example (simple): ```php "deletedonlive" => "Deleted" ``` Example (with optional title attribute): ```php "deletedonlive" => array( 'text' => "Deleted", 'title' => 'This page has been deleted' ) ```
Signature
protected function getStatusFlags(Versioned|DataObject
$record )
Parameters
$record
— object- - the record to check status for
Returns
- array