Problem/Motivation
During clear Drupal installation my kernel tests are failing and pointing to Drupal\replicate_ui\Plugin\Derivative\EntityReplicateActions::getDerivativeDefinitions() ln: 61
Drupal is trying to access $config->get('entity_types') which returns NULL even though there is a valid configuration.
Proposed resolution
I believe the call above happens before config gets installed.
A quick fix would be to cast $config->get('entity_types') to an array in order to stop in_array() complaining.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | cast_entity_types_value-2880347-2.patch | 1.03 KB | mbovan |
Comments
Comment #2
mbovan commentedProviding a patch that implements mentioned in the proposed resolution.
Comment #3
btopro commentedComment #4
berdirNot sure about this, kernel tests are special and responsible for importing config, we might need to import default config of that module instead if that's possible before the rebuild. If not then seems like an OK workaround.
Comment #5
berdirClosing, confirmed that this is fine if we install the replicate_ui config first.