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.

Hook domain

Hook Commands

UpdateHookStatusCommand

PrestaShop\PrestaShop\Core\Domain\Hook\Command\UpdateHookStatusCommand Class UpdateHookStatusCommand update a given hook status

Command details
Constructor parameters
  • $int $hookId
  • $bool $status
Handler class PrestaShop\PrestaShop\Adapter\Hook\CommandHandler\UpdateHookStatusCommandHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Hook\CommandHandler\UpdateHookStatusCommandHandlerInterface
Return type void

Hook Queries

GetHookStatus

PrestaShop\PrestaShop\Core\Domain\Hook\Query\GetHookStatus Get current status (enabled/disabled) for a given hook

Query details
Constructor parameters
  • $int $hookId
Handler class PrestaShop\PrestaShop\Adapter\Hook\QueryHandler\GetHookStatusHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Hook\QueryHandler\GetHookStatusHandlerInterface
Return type bool