"value":"\n <p>With Drupal 9 almost being end-of-life and unsupported, I've recently been doing a lot of Drupal 9 to 10 upgrade work.<\/p>\n\n<p>As it's a major version update, there are breaking changes that mean you may need to change your code.<\/p>\n\n<p>Here's an example of an error caused by a breaking change:<\/p>\n\n<blockquote>\n <p>Drupal\\Core\\Entity\\Query\\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\\Core\\Entity\\Query\\QueryInterface::accessCheck().<\/p>\n<\/blockquote>\n\n<p>To fix this, you need to call the <code>accessCheck()<\/code> method before executing a query and specify whether it should be checked.<\/p>\n\n<p>But how do you know if it should be checked?<\/p>\n\n<p>If you have automated tests that pass beforehand and still pass afterwards, you picked the correct option.<\/p>\n\n<p>If the test passes before and fails afterwards, you found the bug and can fix it immediately to ensure the functionality works as before.<\/p>\n\n ",
"format":"full_html",
"processed":"\n <p>With Drupal 9 almost being end-of-life and unsupported, I've recently been doing a lot of Drupal 9 to 10 upgrade work.<\/p>\n\n<p>As it's a major version update, there are breaking changes that mean you may need to change your code.<\/p>\n\n<p>Here's an example of an error caused by a breaking change:<\/p>\n\n<blockquote>\n <p>Drupal\\Core\\Entity\\Query\\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\\Core\\Entity\\Query\\QueryInterface::accessCheck().<\/p>\n<\/blockquote>\n\n<p>To fix this, you need to call the <code>accessCheck()<\/code> method before executing a query and specify whether it should be checked.<\/p>\n\n<p>But how do you know if it should be checked?<\/p>\n\n<p>If you have automated tests that pass beforehand and still pass afterwards, you picked the correct option.<\/p>\n\n<p>If the test passes before and fails afterwards, you found the bug and can fix it immediately to ensure the functionality works as before.<\/p>\n\n ",