TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,28 @@
.. include:: /Includes.rst.txt
.. _feature-62944:
=========================================================
Feature: #62944 - UserFunc available as Display Condition
=========================================================
See :issue:`62944`
Description
===========
Being able to use userFunc as `displayCondition` makes it possible to
check on any imaginable condition or state. If any situation can not
be evaluated with any of the existing checks the developer is free
to add an own user function which provides a boolean result whether
to show or hide the TCA field.
.. code-block:: php
$GLOBALS['TCA']['tt_content']['columns']['bodytext']['displayCond'] = 'USER:Evoweb\\Example\\User\\ElementConditionMatcher->checkHeaderGiven:any:more:information';
Any parameters can be added (separated by colons) that are sent to the ConditionMatcher class.
.. index:: PHP-API, TCA, Backend