Please note that this documentation is for the most recent version of this extension. It may not be relevant for older versions. Related documentation can be found in the documentation directory of the extension.
Secret field
The Secret field is a single-line input whose value is masked by default like a password field. The button next to the input toggles whether the value is visible.
Definition
return [
'columns' => [
'secret' => [
'label' => $lll . '.secret',
'config' => \CodingMs\AdditionalTca\Tca\Configuration::get('secret'),
],
],
];
Options
The field supports the size, default, and maxLength options. The usual parameters for required and read-only fields are also available.
'config' => \CodingMs\AdditionalTca\Tca\Configuration::get('secret', true, false, '', [
'size' => 40,
'default' => '',
'maxLength' => 255,
]),
Security note
The value is stored unchanged as plain text in the database. The field only masks the value in the backend input; it does not encrypt it. It is therefore not suitable for securely storing passwords or other credentials.
