Listing.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Block\Adminhtml\Dispatch;
  6. use Temando\Shipping\Block\Adminhtml\Template\AbstractComponent;
  7. /**
  8. * Temando Dispatch Listing Block
  9. *
  10. * @package Temando\Shipping\Block
  11. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  12. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link http://www.temando.com/
  14. *
  15. * @api
  16. * @deprecated since 1.0.5 | Block data is provided by view model
  17. * @see \Temando\Shipping\ViewModel\Dispatch\DispatchListing
  18. */
  19. class Listing extends AbstractComponent
  20. {
  21. /**
  22. * @return string
  23. */
  24. public function getDispatchDetailPageUrl()
  25. {
  26. $urlTpl = $this->getUrl('temando/dispatch/view', [
  27. 'dispatch_id' => '--id--',
  28. ]);
  29. return $urlTpl;
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getDispatchCreatePageUrl()
  35. {
  36. $url = $this->getUrl('temando/dispatch/new');
  37. return $url;
  38. }
  39. }