Skip to content

Commit

Permalink
[BOT][TASK] Automatic Update of ViewHelper reference
Browse files Browse the repository at this point in the history
  • Loading branch information
typo3-documentation-team committed Jun 27, 2024
1 parent feddeaf commit bce45dd
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 1 deletion.
76 changes: 76 additions & 0 deletions Documentation/typo3fluid/fluid/latest/Constant.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
.. This reStructured text file has been automatically generated, do not change.
.. Source: https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/ConstantViewHelper.php
:edit-on-github-link: https://github.com/TYPO3/Fluid/edit/main/src/ViewHelpers/ConstantViewHelper.php
:navigation-title: constant

.. include:: /Includes.rst.txt

.. _typo3fluid-fluid-constant:

==================================
Constant ViewHelper `<f:constant>`
==================================



Wrapper for PHPs :php:`constant` function.
See https://www.php.net/manual/function.constant.php.

Examples
========

Get built-in PHP constant
-------------------------

::

{f:constant(value: 'PHP_INT_MAX')}

Output::

9223372036854775807
(Depending on CPU architecture).

Get class constant
------------------

::

{f:constant(value: '\Vendor\Package\Class::CONSTANT')}

Get enum value
--------------

::

{f:constant(value: '\Vendor\Package\Enum::CASE')}

.. _typo3fluid-fluid-constant_source:

Source code
===========

Go to the source code of this ViewHelper: `ConstantViewHelper.php (GitHub) <https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/ConstantViewHelper.php>`__.

.. _typo3fluid-fluid-constant_arguments:

Arguments
=========

The following arguments are available for `<f:constant>`:

.. confval-menu::
:display: table
:type:
:default:


.. _typo3fluid-fluid-constant-name_argument:

.. confval:: name
:name: typo3fluid-fluid-constant-name
:type: string
:required: false

String representation of a PHP constant or enum
3 changes: 2 additions & 1 deletion Documentation/typo3fluid/fluid/latest/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
typo3fluid/fluid
================

* 25 ViewHelpers documented
* 26 ViewHelpers documented
* 2 Sub namespaces

.. toctree::
Expand All @@ -16,6 +16,7 @@ typo3fluid/fluid
Alias
Case
Comment
Constant
Count
Cycle
Debug
Expand Down

0 comments on commit bce45dd

Please sign in to comment.