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