FrontendStorageConfigurationInterface.php 773 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Catalog\Model;
  7. /**
  8. * @api
  9. * Storage, which provide information for frontend storages, as product-storage, ids-storage
  10. * @since 102.0.0
  11. */
  12. interface FrontendStorageConfigurationInterface
  13. {
  14. /**
  15. * Lifetime is not mandatory attribute for each frontend storage configuration scope. However in some cases
  16. * (e.g. when we need to flush deprecated frontend actions) we need to have default lifetime
  17. */
  18. const DEFAULT_LIFETIME = 1000;
  19. /**
  20. * Prepare dynamic data which will be used in Storage Configuration (e.g. data from App/Config)
  21. *
  22. * @return array
  23. * @since 102.0.0
  24. */
  25. public function get();
  26. }