ConfigInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Contact\Model;
  7. /**
  8. * Contact module configuration
  9. *
  10. * @api
  11. * @since 100.2.0
  12. */
  13. interface ConfigInterface
  14. {
  15. /**
  16. * Recipient email config path
  17. */
  18. const XML_PATH_EMAIL_RECIPIENT = 'contact/email/recipient_email';
  19. /**
  20. * Sender email config path
  21. */
  22. const XML_PATH_EMAIL_SENDER = 'contact/email/sender_email_identity';
  23. /**
  24. * Email template config path
  25. */
  26. const XML_PATH_EMAIL_TEMPLATE = 'contact/email/email_template';
  27. /**
  28. * Enabled config path
  29. */
  30. const XML_PATH_ENABLED = 'contact/contact/enabled';
  31. /**
  32. * Check if contacts module is enabled
  33. *
  34. * @return bool
  35. * @since 100.2.0
  36. */
  37. public function isEnabled();
  38. /**
  39. * Return email template identifier
  40. *
  41. * @return string
  42. * @since 100.2.0
  43. */
  44. public function emailTemplate();
  45. /**
  46. * Return email sender address
  47. *
  48. * @return string
  49. * @since 100.2.0
  50. */
  51. public function emailSender();
  52. /**
  53. * Return email recipient address
  54. *
  55. * @return string
  56. * @since 100.2.0
  57. */
  58. public function emailRecipient();
  59. }