Pass node_type to form correctly

Created on 22 November 2023, 7 months ago

Problem/Motivation

Now node_type is not passed to NodeOrderForm, but is taken from the request data.
It makes impossible to render this form using Form Builder.

Steps to reproduce

Try to get the form using \Drupal::formBuilder()->getForm('Drupal\node_weight\Form\NodeOrderForm', 'node_type_name');

Proposed resolution

Add $node_type as the argument to buildForm() instead of current implementation

User interface changes

No

API changes

No

Data model changes

No

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΉπŸ‡·Turkey linichalexey

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024