Model
ThemeValidator
Magento\Theme\Model\ThemeValidator
What it does
This validator checks if a theme is currently being used in any store configuration before allowing it to be removed or modified.
Developers use this class when building theme management features to prevent accidental deletion of active themes and to provide feedback about where themes are in use across default, website, or store scopes.
Public Methods
- validateIsThemeInUse()