ResourceInterface.php 484 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Translate;
  7. /**
  8. * Returns the translation resource data.
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface ResourceInterface
  14. {
  15. /**
  16. * Retrieve translation array for store / locale code
  17. *
  18. * @param int $scope
  19. * @param string $locale
  20. * @return array
  21. */
  22. public function getTranslationArray($scope = null, $locale = null);
  23. }