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

Hook displayAdminGridTableBefore


Display before Grid table This hook adds new blocks before Grid component table
Hook displayAdminGridTableBefore
Type display
Origin core
Aliases [displayAdminListBefore]

Located in

Origin File
core src/PrestaShopBundle/Resources/views/Admin/Common/Grid/Blocks/table.html.twig

Parameters details

      'grid' = Grid $grid,
      'controller' => (string) $controller
      'legacy_controller' => (string) $legacyController

Call of the Hook in the origin file

{{ renderhook('displayAdminGridTableBefore', {
    'grid': grid,
    'legacy_controller': app.request.attributes.get('_legacy_controller'),
    'controller': app.request.attributes.get('_controller')