- Issue created by @BEGRAFX
- π΅πΉPortugal jrochate
There is a change in Drupal 11.2 on the namespace of the Form.
I'm sending a patch that make is work again on Drupal 11.2.
I'm not sending a MR because the maintainers need to make a decision on how to make it available.
- π©π°Denmark uv516 Denmark
I had the same issue with the module "save_edit".
Look at https://www.drupal.org/project/save_edit/issues/3532059 π Save_edit not workin in Drupal 11 Active and https://www.drupal.org/project/save_edit/issues/3535599 βIn exclude_node_title the problem can be solved in this way:
use Drupal\Core\Block\BlockPluginInterface; use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\node\NodeInterface; - use Drupal\node\NodeForm; ... (Line 172++): function exclude_node_title_form_alter(&$form, FormStateInterface $form_state, $form_id) { $form_object = $form_state->getFormObject(); /** @var \Drupal\exclude_node_title\ExcludeNodeTitleManagerInterface $exclude_manager */ $exclude_manager = \Drupal::service('exclude_node_title.manager'); - if ($form_object instanceof NodeForm) { + if ($form_object instanceof \Drupal\node\NodeForm || $form_object instanceof \Drupal\node\Form\NodeForm) { /** @var \Drupal\node\NodeInterface $node */ $node = $form_object->getEntity(); $node_type = $node->getType();
My experience with patching is unfortunately quite negative. Maybe someone else will make a patch?
- πΊπΈUnited States smustgrave
Appears to be a dup of π Exclude node title checkbox does not appear on Drupal 11 Active
- π©π°Denmark uv516 Denmark
This post can not be a dualisme of a later post. It must be te later post which is the duplicate...