Issue #3118383: Only call postInstall() on the content plugin when config is...
Issue #3118383: Only call postInstall() on the content plugin when config is not imported as it might fail otherwise
While installation from existing config (and maybe during "normal" config import as well) the content plugin might not be available and causing an exception. As postInstall()
only creates config objects while config import is not in progress, lets only call it when it actually will run.
A test should be added for this but I got stuck with mocking the content entity type only partially (just the getContentPlugin()
method needs to be mocked for asserting that it is not called by postSave()
in case that \Drupal::isConfigSyncing()
returns true
.
Closes #3118383