- Issue created by @acbramley
node.module contains many old school procedural functions, many of which are no longer used by core or are better replaced by already existing OO code.
Some of these can be moved to hooks classes, or some may need replacements. This meta will track all the work to deprecate these functions.
1. node_title_list
📌
Deprecate node_title_list
Active
2.
📌
Deprecate node_mark
Active
3. node_type_get_names
Needs issue, will need replacement
4. node_get_type_label
📌
Deprecate node_get_type_label()
Active
5. node_type_get_description
📌
Deprecate node_type_get_description
Active
6. node_add_body_field
📌
Deprecate node_add_body_field()
Active
7. node_is_page
📌
Deprecate node_is_page and move into a service
Active
8. node_access_grants
📌
Deprecate node_access_grants() and move its functionality to NodeAccessControlHandler
Active
9. node_access_view_all_nodes
📌
Deprecate node_access_view_all_nodes(). Move its functionality in NodeAccessControlHandlerInterface
Needs work
10. node_access_needs_rebuild
Needs issue, will need replacement
11. node_access_rebuild, _node_access_rebuild_batch_operation, _node_access_rebuild_batch_finished
Needs issue, will need replacement (couple with 10.)
12. node_reindex_node_search
Needs issue, could be moved to Hooks class. The call in Node.php might be better placed in a hook_node_update.
The following functions are hooks that will be handled separately:
template_preprocess_node_add_list
node_preprocess_html
node_preprocess_block
node_theme_suggestions_node
template_preprocess_node
node_form_system_themes_admin_form_submit
Active
11.0 🔥
node system