Forgotpassword.php 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Block\Account;
  7. use Magento\Customer\Model\Url;
  8. use Magento\Framework\View\Element\Template;
  9. /**
  10. * Customer account navigation sidebar
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. class Forgotpassword extends \Magento\Framework\View\Element\Template
  16. {
  17. /**
  18. * @var Url
  19. */
  20. protected $customerUrl;
  21. /**
  22. * @param Template\Context $context
  23. * @param Url $customerUrl
  24. * @param array $data
  25. */
  26. public function __construct(
  27. Template\Context $context,
  28. Url $customerUrl,
  29. array $data = []
  30. ) {
  31. $this->customerUrl = $customerUrl;
  32. parent::__construct($context, $data);
  33. }
  34. /**
  35. * Get login URL
  36. *
  37. * @return string
  38. */
  39. public function getLoginUrl()
  40. {
  41. return $this->customerUrl->getLoginUrl();
  42. }
  43. }