Edit.php 588 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Block\Cart\Item\Renderer\Actions;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Edit extends Generic
  12. {
  13. /**
  14. * Get item configure url
  15. *
  16. * @return string
  17. */
  18. public function getConfigureUrl()
  19. {
  20. return $this->getUrl(
  21. 'checkout/cart/configure',
  22. [
  23. 'id' => $this->getItem()->getId(),
  24. 'product_id' => $this->getItem()->getProduct()->getId()
  25. ]
  26. );
  27. }
  28. }