PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page

Learn how to upgrade to the latest version.

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