I wannawant to uninstall Field
the Field module, but this module can not be uninsalleduninstalled; when I try, showing:I get the following message.
Field API to add fields to entities like nodes and users.
Machine name: field
Version: 8.0.6
Required by: TextNodeAdmin ToolbarAdmin Toolbar Extra ToolsFileOptionsAggregator (disabled)ImageAccelerated Mobile Pages (AMP) (disabled)Custom BlockBook (disabled)Text EditorCKEditorCommentInterface TranslationConfiguration Translation (disabled)
Field API to add fields to entities like nodes and users. Machine name: field Version: 8.0.6 Required by: TextNodeAdmin ToolbarAdmin Toolbar Extra ToolsFileOptionsAggregator (disabled) ImageAccelerated Mobile Pages (AMP) (disabled)Custom BlockBook (disabled)Text EditorCKEditorCommentInterface TranslationConfiguration Translation (disabled)
How todo I forcefully uninstall any module that is having dependency or content inside.
For ex: node, viewsfor example the Node module, the Views module, or any entity having content in it. I tried using?
I tried using \Drupal::service('module_installer')->uninstall(['admin_toolbar']);
but when done for modules having content inside,then my site breaks, saying unexpected error.