mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
40 lines
715 B
PHP
40 lines
715 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\Store\Model\StoreSwitcher;
|
|
|
|
use Magento\Store\Api\Data\StoreInterface;
|
|
|
|
/**
|
|
* Store switcher context interface
|
|
*
|
|
* @api
|
|
*/
|
|
interface ContextInterface
|
|
{
|
|
/**
|
|
* Store to switch from
|
|
*
|
|
* @return StoreInterface
|
|
*/
|
|
public function getFromStore(): StoreInterface;
|
|
|
|
/**
|
|
* Store to switch to
|
|
*
|
|
* @return StoreInterface
|
|
*/
|
|
public function getTargetStore(): StoreInterface;
|
|
|
|
/**
|
|
* The URL to redirect after switching store
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getRedirectUrl(): string;
|
|
}
|