update($sandbox, 'node_type', function (NodeTypeInterface $node_type): bool { // Content types' `help` and `description` fields must be stored as NULL // at the config level if they are empty. if (trim($node_type->getDescription()) === '') { $node_type->set('description', NULL); } if (trim($node_type->getHelp()) === '') { $node_type->set('help', NULL); } return TRUE; }); } /** * Implements hook_removed_post_updates(). */ function node_removed_post_updates() { return [ 'node_post_update_configure_status_field_widget' => '9.0.0', 'node_post_update_node_revision_views_data' => '9.0.0', 'node_post_update_glossary_view_published' => '10.0.0', 'node_post_update_rebuild_node_revision_routes' => '10.0.0', 'node_post_update_modify_base_field_author_override' => '10.0.0', ]; }