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.
I created a new type and got this message:
> Entity type Schedule slot has been updated.
That should be 'created' surely?
Also in many messages, the machine name is used in the message instead of the label.
Comments
Comment #1
fmizzell CreditAttribution: fmizzell commentedYeah, I noticed a few other inconsistencies and errors also.. I will turn this issue into a general "FIX MESSAGES" to the user.
Comment #2
fmizzell CreditAttribution: fmizzell commentedComment #3
joachim CreditAttribution: joachim commentedThere is actually this code there already, but $entity_type->isNew gets wiped when the entity type is saved a few lines earlier...
I'm not sure how best to fix it.
I'd be inclined to say that isNew shouldn't get wiped by save(), but then I don't know what else might rely on it. Also, I feel really wary of this:
because that means that the flag gets set even when an entity type object is being loaded from the database, when it's surely not new!
Comment #4
fmizzell CreditAttribution: fmizzell commentedComment #7
fmizzell CreditAttribution: fmizzell commentedNot sure how good the wording is, but it is all consistent now.