Notice: You are browsing the documentation for PrestaShop 8, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 1.7.

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