DataProviderInterface.php 611 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Translation\Model\Js;
  7. /**
  8. * Provides translation data from a theme.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface DataProviderInterface
  14. {
  15. /**
  16. * Gets translation data for a given theme. Only returns phrases which are actually translated.
  17. *
  18. * @param string $themePath The path to the theme
  19. * @return array A string array where the key is the phrase and the value is the translated phrase.
  20. * @throws \Exception
  21. */
  22. public function getData($themePath);
  23. }