Skip to content

Commit

Permalink
define the default value as a second parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
andersonjeccel committed Aug 28, 2024
1 parent eca4c76 commit 739a71f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/design/retriving_system_information.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ To directly display a configuration value in your template, use the following sy
{{ configGetParameter('parameter_name') }}
You can also define the default value as a second parameter:

.. code-block:: twig
{{ configGetParameter('parameter_name', 'default value') }}
For example, to display the API OAuth2 access token lifetime:

.. code-block:: twig
Expand Down

0 comments on commit 739a71f

Please sign in to comment.