Comments

mikelutz created an issue. See original summary.

mikelutz’s picture

mikelutz’s picture

Status: Active » Needs review
StatusFileSize
new5.36 KB
mikelutz’s picture

StatusFileSize
new6.26 KB
new925 bytes

Adding in the legacy test

mikelutz’s picture

StatusFileSize
new6.26 KB
new1.89 KB

Fix spacing in the deprecation message

Status: Needs review » Needs work
mikelutz’s picture

Status: Needs work » Needs review
StatusFileSize
new7.08 KB
new836 bytes

Iterating over the non-typehinted usages (i.e. $node->type->entity->isNewRevision())

mikelutz’s picture

StatusFileSize
new7.73 KB
new673 bytes

yawn...

mikelutz’s picture

StatusFileSize
new8.45 KB
new738 bytes

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

wim leers’s picture

+++ b/core/modules/quickedit/src/Form/QuickEditFieldForm.php
@@ -122,7 +122,7 @@ protected function init(FormStateInterface $form_state, EntityInterface $entity,
-      $entity->setNewRevision($node_type->isNewRevision());
+      $entity->setNewRevision($node_type->shouldCreateNewRevision());

This is the one I wanted to verify to be removed 👍

catch’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs re-roll

Looks good but needs a re-roll.

berdir’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: -Needs re-roll
StatusFileSize
new8.46 KB

Still applied with git apply -3:

error: patch failed: core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTypeTest.php:36
Falling back to three-way merge...
Applied patch to 'core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeTypeTest.php' cleanly.

Didn't actually do anything and verified that file, so back to RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 74ddb4b and pushed to 8.8.x. Thanks!

  • alexpott committed 74ddb4b on 8.8.x
    Issue #3067361 by mikelutz, Berdir: Properly deprecate NodeType::...
catch’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.