The method allows you to add additional actions on the records in the table. When pressing the button, the object of the current record model is returned to the function.
Example:
$this->addAction('Ban', 'ban', function ($model){
return $model;
});