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

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