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