Info.php 578 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\AuthorizenetAcceptjs\Block;
  8. use Magento\Framework\Phrase;
  9. use Magento\Payment\Block\ConfigurableInfo;
  10. /**
  11. * Translates the labels for the info block
  12. *
  13. * @api
  14. * @since 100.3.0
  15. */
  16. class Info extends ConfigurableInfo
  17. {
  18. /**
  19. * Returns label
  20. *
  21. * @param string $field
  22. * @return Phrase
  23. * @since 100.3.0
  24. */
  25. protected function getLabel($field): Phrase
  26. {
  27. return __($field);
  28. }
  29. }