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

CommentFileSizeAuthor
#2 cast_entity_types_value-2880347-2.patch1.03 KBmbovan

Comments

mbovan created an issue. See original summary.

mbovan’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Providing a patch that implements mentioned in the proposed resolution.

btopro’s picture

Assigned: Unassigned » dawehner
berdir’s picture

Not 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.

berdir’s picture

Status: Needs review » Closed (works as designed)

Closing, confirmed that this is fine if we install the replicate_ui config first.