ReadSnapshot.php 549 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Eav\Model\ResourceModel;
  7. use Magento\Store\Model\StoreManagerInterface as StoreManager;
  8. use Magento\Framework\Model\Entity\ScopeInterface;
  9. /**
  10. * Class ReadSnapshot
  11. */
  12. class ReadSnapshot extends ReadHandler
  13. {
  14. /**
  15. * @param ScopeInterface $scope
  16. * @return array
  17. */
  18. protected function getContextVariables(ScopeInterface $scope)
  19. {
  20. $data[] = $scope->getValue();
  21. return $data;
  22. }
  23. }