Once used this module is set indefinitely as a dependency for the node type

Created on 6 September 2018, over 6 years ago
Updated 15 April 2024, 9 months ago

I have tried to remove this module but I am unable to continue using config export as this module is set as a dependency in the yaml file for the node type.

I have also tried deleting the class from the content type edit form but getting an error.

TypeError: Argument 2 passed to node_type_class_form_node_type_form_builder() must be an instance of NodeTypeInterface, instance of Drupal\node\Entity\NodeType given in node_type_class_form_node_type_form_builder() (line 40 of modules/contrib/node_type_class/node_type_class.module).
node_type_class_form_node_type_form_builder('node_type', Object, Array, Object)
call_user_func_array('node_type_class_form_node_type_form_builder', Array) (Line: 310)
Drupal\Core\Entity\EntityForm->buildEntity(Array, Object) (Line: 181)
Drupal\Core\Entity\EntityForm->afterBuild(Array, Object)
call_user_func_array(Array, Array) (Line: 1068)
Drupal\Core\Form\FormBuilder->doBuildForm('node_type_edit_form', Array, Object) (Line: 561)
Drupal\Core\Form\FormBuilder->processForm('node_type_edit_form', Array, Object) (Line: 318)
Drupal\Core\Form\FormBuilder->buildForm('node_type_edit_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 666)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Active

Component

Code

Created by

🇬🇧United Kingdom joehuggans Harrogate, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇯🇵Japan ilfelice

    Howdy,

    Having same error with cache after uninstall.

    I uninstalled this module, and am getting the following error message in the content type edit pages:

    User warning: The following theme is missing from the file system: node_type_class in Drupal\Core\Extension\ExtensionPathResolver->getPathname() (line 63 of core/lib/Drupal/Core/Extension/ExtensionPathResolver.php).

    Is this related or should I report separately?

Production build 0.71.5 2024