Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Documentation/404.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@ Form.timePicker ViewHelper `<formvh:form.timePicker>` was removed
The :yaml:`DatePicker` form element type and its associated
`<formvh:form.datePicker>` and `<formvh:form.timePicker>` have been
deprecated in favor of the :yaml:`Date` form element.

.. _typo3-fluid-be-infobox-migration:

InfoboxViewHelper state constants moved to ContextualFeedbackSeverity enum
--------------------------------------------------------------------------

.. deprecated:: 14.0
See `Deprecation: #107648 - InfoboxViewHelper STATE_* constants <https://docs.typo3.org/permalink/changelog:deprecation-107648-1744465200>`_.

The public constants in :php-short:`\TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper`
for defining the state/severity of an infobox have been removed. Use
the enum :php:`\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity` instead.
25 changes: 0 additions & 25 deletions Documentation/Global/Be/Infobox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ Be.infobox ViewHelper `<f:be.infobox>`
Severity states of the Be.infobox ViewHelper
============================================

.. deprecated:: 14.0
The public constants in :php-short:`\TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper`
for defining the state/severity of an infobox have been deprecated. Use
the enum :php:`\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity` instead.

The Infobox provides different context-sensitive states that
can be used to provide an additional visual feedback to the
user to underline the meaning of the information.
Expand Down Expand Up @@ -101,26 +96,6 @@ You can find this example in the TYPO3 backend module
.. literalinclude:: _Infobox/_ReferenceIndex.html
:caption: EXT:lowlevel/Resources/Private/Templates/ReferenceIndex.html

.. _typo3-fluid-be-infobox-migration:

Migration from using InfoboxViewHelper state constants
------------------------------------------------------

If you want to support both TYPO3 v13 and v14 you can keep using the constants
until dropping TYPO3 13 support.

After dropping TYPO3 13 support migrate as follows:

.. literalinclude:: _Infobox/_Migration.diff
:caption: EXT:my_extension/Resources/Private/Backend/Templates/MyModule.html

In PHP code replace the severity by using the enum or their value instead of the
constants:

.. literalinclude:: _Infobox/_Migration.php
:caption: EXT:my_extension/Classes/Controller/MyController.php


.. _typo3-fluid-be-infobox-arguments:

Arguments
Expand Down
5 changes: 0 additions & 5 deletions Documentation/Global/Be/_Infobox/_Migration.diff

This file was deleted.

14 changes: 0 additions & 14 deletions Documentation/Global/Be/_Infobox/_Migration.php

This file was deleted.