I have an entity view display configuration where I would like to "unset" a component (one of the field). I implement the ConfigFactoryOverrideInterface with the right service configuration. Is there a way not just override a configuration array but completely remove one of it's key? (in this case one of the component).

I also found where the return value of this method (loadOverrides) is being processed and unfortunately the NestedArray::merge is used which gives a higher precedent to the original config. (which in the end won't let you to remove a key..)

Any ideas how to solve this? (this has to happen runtime.. the change mustn't be permanent like simply changing it on the UI and save)



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.