Log in
Model

Registration

Magento\Theme\Model\Theme\Registration

What it does

This class manages the registration and validation of Magento 2 themes from the filesystem into the database.

Developers use this during theme installation to ensure themes are properly registered, their inheritance chains are valid, and that physical themes in the filesystem are synchronized with database records.

It also handles theme type relationships (physical, virtual, staging) and prevents circular inheritance.

Public Methods

  • register()
  • getThemeFromDb()
  • checkPhysicalThemes()
  • checkAllowedThemeRelations()