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

Function definition

To render a list of function definitions, use funcdef in combination with Markdown definition list:

{{% funcdef %}}

__construct($id = NULL, $id_lang = NULL)
: 
    Build object.

add($autodate = true, $nullValues = false)
: 
    Save current object to database (add or update).

{{% /funcdef %}}

Rendered result:

__construct($id = NULL, $id_lang = NULL)
Build object.
add($autodate = true, $nullValues = false)
Save current object to database (add or update).
Be aware that you need to leave at least one trailing space after each : for the markup to be correctly interpreted as a definition list.