Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The NodeTypeForm has a setting that allows you to change the default value of the status field (whether new nodes are published by default).
We should have that on the ProductTypeForm as well.
Comments
Comment #2
dbolinovski CreditAttribution: dbolinovski commentedComment #3
mglamans/bu/by
Since EntityManager is deprecated need to get service directly as \Drupal::service('entity_field.manager')->getFieldDefinitions()
EntityForm now supports $this->entityTypeManager. EntityManager is deprecated.
Replace EntityManager with \Drupal::service('entity_field.manager')
Comment #4
dbolinovski CreditAttribution: dbolinovski commentedComment #5
dbolinovski CreditAttribution: dbolinovski commentedentity_field.manager dependency injection.
Comment #6
mglaman+1 for adding entity_field.manager as a dependency injection.
Comment #8
bojanz CreditAttribution: bojanz at Centarro commentedThis needed more work.
Finished and committed: https://github.com/commerceguys/commerce/commit/ff93e38155918e73334d1046...