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

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

Meta domain

Meta Commands

AddMetaCommand

PrestaShop\PrestaShop\Core\Domain\Meta\Command\AddMetaCommand Class AddMetaCommand is responsible for saving meta entities data.

Command details
Constructor parameters
  • $string $pageName
Handler class PrestaShop\PrestaShop\Adapter\Meta\CommandHandler\AddMetaHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Meta\CommandHandler\AddMetaHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Meta\ValueObject\MetaId

EditMetaCommand

PrestaShop\PrestaShop\Core\Domain\Meta\Command\EditMetaCommand Class EditMetaCommand

Command details
Constructor parameters
  • $int $metaId
Handler class PrestaShop\PrestaShop\Adapter\Meta\CommandHandler\EditMetaHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Meta\CommandHandler\EditMetaHandlerInterface
Return type void

Meta Queries

GetMetaForEditing

PrestaShop\PrestaShop\Core\Domain\Meta\Query\GetMetaForEditing Class GetMetaForEditing is responsible for providing required data for GetMetaForEditingHandler to return meta data.

Query details
Constructor parameters
  • $int $metaId
Handler class PrestaShop\PrestaShop\Adapter\Meta\QueryHandler\GetMetaForEditingHandler

Implements:

  • PrestaShop\PrestaShop\Core\Domain\Meta\QueryHandler\GetMetaForEditingHandlerInterface
Return type PrestaShop\PrestaShop\Core\Domain\Meta\QueryResult\EditableMeta

GetPagesForLayoutCustomization

PrestaShop\PrestaShop\Core\Domain\Meta\Query\GetPagesForLayoutCustomization Gets pages for which theme's layout can be customized.

Query details
Constructor parameters
    Handler class PrestaShop\PrestaShop\Adapter\Meta\QueryHandler\GetPagesForLayoutCustomizationHandler

    Implements:

    • PrestaShop\PrestaShop\Core\Domain\Meta\QueryHandler\GetPagesForLayoutCustomizationHandlerInterface
    Return type void