We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f2f4a commit f8d1968Copy full SHA for f8d1968
Model/Config.php
@@ -29,9 +29,14 @@ public function __construct(
29
private SerializerInterface $serializer
30
) {}
31
32
+ public function isStoreInPath(): bool
33
+ {
34
+ return $this->scopeConfig->isSetFlag(Store::XML_PATH_STORE_IN_URL);
35
+ }
36
+
37
public function isEnabled(): bool
38
{
- return $this->scopeConfig->isSetFlag(Store::XML_PATH_STORE_IN_URL)
39
+ return $this->isStoreInPath()
40
&& ($this->getStorePathType() !== PathType::StoreCode || $this->isUnsetSingleStorePath());
41
}
42
0 commit comments