Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: #97035 - Utilize "required" directly in TCA field configuration #3363

Closed
sabbelasichon opened this issue Mar 6, 2023 · 1 comment · Fixed by #3987
Closed

Feature: #97035 - Utilize "required" directly in TCA field configuration #3363

sabbelasichon opened this issue Mar 6, 2023 · 1 comment · Fixed by #3987

Comments

@sabbelasichon
Copy link
Owner

Feature: #97035 - Utilize "required" directly in TCA field configuration

https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/12.0/Feature-97035-UtilizeRequiredDirectlyInTCAFieldConfiguration.html
.. include:: /Includes.rst.txt

.. _feature-97035:

========================================================================
Feature: #97035 - Utilize "required" directly in TCA field configuration

See :issue:97035

Description

Since :issue:67354, the FormEngine may use :php:required with a bool value
in a TCA field configuration, enabling the same functionality as the required
option within eval.

All TCA in TYPO3 Core is migrated to use the required configuration over the
corresponding eval option.

Impact

If not done already, TCA is automatically migrated to use :php:'required' => true
instead of the co-existing eval option. The automated migration will trigger
a deprecation entry though.

Example

.. code-block:: php

'columns' => [
    'some_column' => [
        'title' => 'foo',
        'config' => [
            'required' => true,
            'eval' => 'trim',
        ],
    ],
],

.. index:: Backend, TCA, ext:core

@helsner
Copy link
Collaborator

helsner commented Apr 25, 2023

this is also already done - MigrateRequiredFlagRector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants