Problem/Motivation
When migrating procedural / legacy hooks to OOP hooks, commerce_shipping_order_type_form_validate() and commerce_shipping_order_type_form_submit() remained in the .module file.
We should move those to CommerceShippingHooks.
I also wonder if we shouldn't move commerce_shipping_build_shipment_field_definition() to a helper utility class?
Can be static? I know if it's a static function decorating it is not really possible but at the same time decorating commerce_shipping_build_shipment_field_definition() isn't really possible today.
Issue fork commerce_shipping-3557638
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
tbkot commentedComment #5
jsacksick commentedSorry for the back & forth... Let's remove the
ShipmentUtilityclass and go with a static method in the Shipment class (buildShipmentsFieldDefinition()).Comment #6
tbkot commentedComment #8
jsacksick commentedMerged, thanks!