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 up TCA 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 trigger a PHP E_USER_DEPRECATED
error.
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',
],
],
],
Copied!
Example after migration:
'columns' => [
'some_column' => [
'title' => 'foo',
'config' => [
'required' => true,
'eval' => 'trim',
],
],
],
Copied!