PostFetchProcessorInterface.php 543 B

12345678910111213141516171819202122
  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\Framework\GraphQl\Query;
  8. /**
  9. * Processor or processors to re-format and add additional data outside of the scope of the query's fetch.
  10. */
  11. interface PostFetchProcessorInterface
  12. {
  13. /**
  14. * Process data by formatting and add any necessary additional attributes.
  15. *
  16. * @param array $resultData
  17. * @return array
  18. */
  19. public function process(array $resultData) : array;
  20. }