FrontendStorageConfigurationInterface.php 773 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

namespace Magento\Catalog\Model;

/**
 * @api
 * Storage, which provide information for frontend storages, as product-storage, ids-storage
 * @since 102.0.0
 */
interface FrontendStorageConfigurationInterface
{
    /**
     * Lifetime is not mandatory attribute for each frontend storage configuration scope. However in some cases
     * (e.g. when we need to flush deprecated frontend actions) we need to have default lifetime
     */
    const DEFAULT_LIFETIME = 1000;

    /**
     * Prepare dynamic data which will be used in Storage Configuration (e.g. data from App/Config)
     *
     * @return array
     * @since 102.0.0
     */
    public function get();
}