image_style_add_form() is a completely separate form, duplicating the entire code of image_style_form().
Goal
Apply common patterns.
Proposed solution
Remove image_style_add_form().
Change the menu/router item to point to a new image_style_add_page() page callback function, which creates an empty $style thingie and passes that to image_style_form().
This is fixed now by implementing \Drupal\image\Form\ImageStyleFormBase that is extended by ImageStyleAddForm and ImageStyleEditForm. Closing as duplicate.
Comments
Comment #1
claudiu.cristeaThis is fixed now by implementing
\Drupal\image\Form\ImageStyleFormBasethat is extended byImageStyleAddFormandImageStyleEditForm. Closing as duplicate.