public function copyAction($route, $key = 'id', $role = '')
{
$rowAction = new RowAction('<i class="fa fa-copy"></i>', $route);
$rowAction->setAttributes(['class' => 'btn btn-info btn-xs ', 'data-toggle' => 'tooltip', 'title' => $this->translator->trans("copy")]);
$rowAction->setRouteParameters($key);
if ($role) {
$rowAction->setRole($role);
}
return $rowAction;
}