only in patch2: unchanged: --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Entity/CustomBlockType.php @@ -90,8 +90,8 @@ public function postSave(EntityStorageControllerInterface $storage_controller, $ entity_invoke_bundle_hook('create', 'custom_block', $this->id()); custom_block_add_body_field($this->id); } - elseif ($this->originalID != $this->id) { - entity_invoke_bundle_hook('rename', 'custom_block', $this->originalID, $this->id); + elseif ($this->getOriginalId() != $this->id) { + entity_invoke_bundle_hook('rename', 'custom_block', $this->getOriginalId(), $this->id); } }