Problem
- 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().
- Ensure that page titles are correct.
Comments
Comment #1
claudiu.cristeaThis is fixed now by implementing
\Drupal\image\Form\ImageStyleFormBasethat is extended byImageStyleAddFormandImageStyleEditForm. Closing as duplicate.