Helper method for responding to a back action request
Signature
public function response(string
$successMessage,
array
$status )
Parameters
$successMessage
—
string
The message to return as a notification. Can have up to two %d's in it. The first will be replaced by the number of successful changes, the second by the number of failures
$status
—
array
A status array like batchactions builds. Should be key => value pairs, the key can be any string: "error" indicates errors, anything else indicates a type of success. The value is an array. We don't care what's in it, we just use count($value) to find the number of items that succeeded or failed