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

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

Notification domain

Notification Commands

UpdateEmployeeNotificationLastElementCommand

PrestaShop\PrestaShop\Core\Domain\Notification\Command\UpdateEmployeeNotificationLastElementCommand Updates the last notification element from a given type seen by the employee

Command details
Constructor parameters
  • $string $type
Handler class PrestaShop\PrestaShop\Adapter\Notification\CommandHandler\UpdateEmployeeNotificationLastElementHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Notification\CommandHandler\UpdateEmployeeNotificationLastElementCommandHandlerInterface
Return type void

Notification Queries

GetNotificationLastElements

PrestaShop\PrestaShop\Core\Domain\Notification\Query\GetNotificationLastElements This Query return the last Notifications elements

Query details
Constructor parameters
  • $int $employeeId
Handler class PrestaShop\PrestaShop\Adapter\Notification\QueryHandler\GetNotificationLastElementsHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Notification\QueryHandler\GetNotificationLastElementsHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Notification\QueryResult\NotificationsResults