|
@@ 524-529 (lines=6) @@
|
| 521 |
|
{ |
| 522 |
|
// Check if Sortable interface is implemented |
| 523 |
|
if ($configurator instanceof SortableInterface) { |
| 524 |
|
$route = function (EntityInterface $item) use ($configurator) { |
| 525 |
|
return array( |
| 526 |
|
'path' => $configurator->getPathByConvention().'_move_up', |
| 527 |
|
'params' => array('id' => $item->getId()), |
| 528 |
|
); |
| 529 |
|
}; |
| 530 |
|
|
| 531 |
|
$action = new SimpleItemAction($route, 'arrow-up', 'kuma_admin_list.action.move_up'); |
| 532 |
|
$configurator->addItemAction($action); |
|
@@ 534-539 (lines=6) @@
|
| 531 |
|
$action = new SimpleItemAction($route, 'arrow-up', 'kuma_admin_list.action.move_up'); |
| 532 |
|
$configurator->addItemAction($action); |
| 533 |
|
|
| 534 |
|
$route = function (EntityInterface $item) use ($configurator) { |
| 535 |
|
return array( |
| 536 |
|
'path' => $configurator->getPathByConvention().'_move_down', |
| 537 |
|
'params' => array('id' => $item->getId()), |
| 538 |
|
); |
| 539 |
|
}; |
| 540 |
|
|
| 541 |
|
$action = new SimpleItemAction($route, 'arrow-down', 'kuma_admin_list.action.move_down'); |
| 542 |
|
$configurator->addItemAction($action); |