Theme domain

Theme Commands

AdaptThemeToRTLLanguagesCommand

PrestaShop\PrestaShop\Core\Domain\Theme\Command\AdaptThemeToRTLLanguagesCommand Class AdaptThemeToRTLLanguagesCommand adapts given theme to RTL languages.

Command details
Constructor parameters
  • $PrestaShop\PrestaShop\Core\Domain\Theme\ValueObject\ThemeName $themeName
Handler class PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\AdaptThemeToRTLLanguagesHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\AdaptThemeToRTLLanguagesHandlerInterface
Return type void

DeleteThemeCommand

PrestaShop\PrestaShop\Core\Domain\Theme\Command\DeleteThemeCommand Class DeleteThemeCommand deletes given theme.

Command details
Constructor parameters
  • $PrestaShop\PrestaShop\Core\Domain\Theme\ValueObject\ThemeName $themeName
Handler class PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\DeleteThemeHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\DeleteThemeHandlerInterface
Return type void

EnableThemeCommand

PrestaShop\PrestaShop\Core\Domain\Theme\Command\EnableThemeCommand Class EnableThemeCommand enables given Front Office theme for context's shop.

Command details
Constructor parameters
  • $PrestaShop\PrestaShop\Core\Domain\Theme\ValueObject\ThemeName $themeName
Handler class PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\EnableThemeHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\EnableThemeHandlerInterface
Return type void

ImportThemeCommand

PrestaShop\PrestaShop\Core\Domain\Theme\Command\ImportThemeCommand Class ImportThemeCommand imports theme from given source.

Command details
Constructor parameters
  • $PrestaShop\PrestaShop\Core\Domain\Theme\ValueObject\ThemeImportSource $importSource
Handler class PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\ImportThemeHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\ImportThemeHandlerInterface
Return type void

ResetThemeLayoutsCommand

PrestaShop\PrestaShop\Core\Domain\Theme\Command\ResetThemeLayoutsCommand Class ResetThemeLayoutsCommand resets theme's page layouts to defaults.

Command details
Constructor parameters
  • $PrestaShop\PrestaShop\Core\Domain\Theme\ValueObject\ThemeName $themeName
Handler class PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\ResetThemeLayoutsHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Theme\CommandHandler\ResetThemeLayoutsHandlerInterface
Return type void

Theme Queries