◆ __construct()
DesignExceptions constructor
- Parameters
-
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
string | $exceptionConfigPath | |
string | $scopeType | |
Json | null | $serializer | |
Definition at line 50 of file DesignExceptions.php.
◆ getThemeByRequest()
Get theme that should be applied for current user-agent according to design exceptions configuration
- Parameters
-
\Magento\Framework\App\Request\Http | $request | |
- Returns
- string|bool
Definition at line 68 of file DesignExceptions.php.
70 $userAgent =
$request->getServer(
'HTTP_USER_AGENT');
71 if (empty($userAgent)) {
75 $this->exceptionConfigPath,
83 if (preg_match(
$rule[
'regexp'], $userAgent)) {
84 return $rule[
'value'];
◆ $exceptionConfigPath
◆ $scopeConfig
◆ $scopeType
The documentation for this class was generated from the following file: