Deprecation: #97035 - "required" option in "eval" keyword

See forge#97035

Description

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

To clean TCA up and allow further refactoring, 'eval' => 'required has been marked as deprecated.

Impact

Using required within eval in TCA and Flexform will trigger an automatic migration and therefore a deprecation log entry.

Affected Installations

All 3rd party extension either using 'eval' => 'required' or <eval>required</eval> are affected.

Migration

Migrate to 'required' => true and <required>1</required> to avoid automatic migration and hence a deprecation log entry.

Example before migration:

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

Example after migration:

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