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