Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ScopeTypeNormalizer.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Store\Model;
7 
12 {
49  public function normalize($scopeType, $plural = true)
50  {
51  $replaces = [
55  ];
56 
57  if (!$plural) {
58  $replaces = array_flip($replaces);
59  }
60 
61  return $replaces[$scopeType] ?? $scopeType;
62  }
63 }