HandlerInterface.php 591 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Indexer;
  7. use Magento\Framework\App\ResourceConnection\SourceProviderInterface;
  8. /**
  9. * @api Implement custom Handler
  10. * @since 100.0.2
  11. */
  12. interface HandlerInterface
  13. {
  14. /**
  15. * Prepare SQL for field and add it to collection
  16. *
  17. * @param SourceProviderInterface $source
  18. * @param string $alias
  19. * @param array $fieldInfo
  20. * @return void
  21. */
  22. public function prepareSql(SourceProviderInterface $source, $alias, $fieldInfo);
  23. }