I have made a module that create a paragraph type, by adding yaml files in the config/install folder

Once installed, i have created some node contents containing nested paragraphs using the one provided by the module.

Those yaml files contains the module dependency, allowing to delete the configs when uninstalling the module.

    - my_module

When uninstalling the module , my node contents pages are not loadable, nor the edit page.

Call to a member function getEnabledBehaviorPlugins() on null in Drupal\paragraphs\ParagraphViewBuilder->buildMultiple() (line 37 of modules/contrib/paragraphs/src/ParagraphViewBuilder.php

How to ask to delete the associated content on the module uninstalling confirmation page ?

  • What's the error? What kind of content are you talking about?
    – sonfd
    Jan 6, 2021 at 18:06
  • Themes can declare dependencies on modules. Maybe just declare a dependency in your theme?!
    – leymannx
    Jan 6, 2021 at 18:20
  • @sonfd i have edited my question, hoping that is clearer
    – Matoeil
    Jan 7, 2021 at 9:45


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.