Update.php 599 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Model\Menu\Builder\Command;
  7. /**
  8. * Command to update menu item data
  9. * @api
  10. * @since 100.0.2
  11. */
  12. class Update extends \Magento\Backend\Model\Menu\Builder\AbstractCommand
  13. {
  14. /**
  15. * Update item data
  16. *
  17. * @param array $itemParams
  18. * @return array
  19. */
  20. protected function _execute(array $itemParams)
  21. {
  22. foreach ($this->_data as $key => $value) {
  23. $itemParams[$key] = $value;
  24. }
  25. return $itemParams;
  26. }
  27. }