- Issue created by @arousseau
- 🇮🇳India Ishani Patel
Hello,
I've followed the steps and am facing the same issue.
The module is incompatible with
Data field →
.
When both modules are enabled, and upon visiting the settings form for Field Encryption, an error occurs due to the way the "Default properties" element is constructed.
\Drupal\field_encrypt\Form\SettingsForm::buildForm()
calls BaseFieldDefinition::create($type)
which in turn calls \Drupal\datafield\Plugin\Field\FieldType\DataFieldItem::propertyDefinitions()
.
DataFieldItem::propertyDefinitions()
relies upon the "field_name" property being set in the definition array.
I am not sure what the best way to deal with the problem would be. I don't know how much work would be needed to make Field Encryption work with the "data_field" field type, or if it would even be possible due to the dynamic nature of the properties on that field type.
Maybe add some "defensive code" to at least avoid this kind of error, and document this incompatibility somewhere ?
Active
4.0
Code
Hello,
I've followed the steps and am facing the same issue.