Log in
Model

ScopeTypeNormalizer

Magento\Store\Model\ScopeTypeNormalizer

What it does

This class provides a utility to normalize Magento 2 scope type strings between their singular and plural forms (e.g., 'website' ↔ 'websites', 'store' ↔ 'stores').

Developers use this when working with scope configurations to ensure consistent scope type formats across different parts of the application, especially when dealing with configuration values or API responses that may use different naming conventions.

Public Methods

  • normalize()