1 # This file controls the behavior of the FunctionCall analyzer and the Disable
2 # function call modifier.
4 # Each item in this file is either information about a single function, or a
5 # group of functions. Groups will have the 'functions' key, listing the affected
8 # If 'disable' is true, the Disable plugin will unconditionally comment out
9 # calls to the function, and leave a FIXME notice above it.
13 message: '`@function` has been removed.'
16 url: 'https://www.drupal.org/node/2169605'
17 title: '`drupal_add_css()`, `drupal_add_js()` and `drupal_add_library()` removed in favor of `#attached`'
19 url: 'https://www.drupal.org/node/2408597'
20 title: '`AssetResolverInterface` and `AttachedAssetsInterface` replace internal Asset API functions'
36 The Assets API has totally changed. CSS, JavaScript, and libraries are now
37 attached directly to render arrays using the #attached property.
41 message: 'The caching system has been rewritten.'
44 url: 'https://www.drupal.org/node/1884796'
45 title: 'Drupal 8 Cache API'
47 url: 'https://www.drupal.org/node/1272696'
48 title: 'New cache API'
61 message: '`@function` has been removed.'
64 url: 'https://www.drupal.org/node/2275139'
65 title: '`@function` moved into `DrupalKernel`'
71 message: '`@function` is now `\Drupal\Core\Form\ConfirmFormBase`'
74 url: 'https://www.drupal.org/node/1945416'
75 title: '`@function` removed'
81 message: '`@function` has moved into the Crypt component.'
84 url: 'https://www.drupal.org/node/1984806'
85 title: '`@function` moved into `\Drupal\Component\Utility\Crypt`'
95 message: 'The CTools plugin system has moved into core.'
98 url: 'https://api.drupal.org/api/drupal/core%21core.api.php/group/plugin_api/8'
99 title: 'Drupal 8 Plugin API'
105 message: 'Most CTools APIs have moved into core.'
108 url: 'https://www.drupal.org/node/2164623'
109 title: 'Many common dependencies added to core'
114 fixme: 'Most CTools APIs have been moved into core.'
117 message: 'The CTools Export API has moved into core.'
120 url: 'https://www.drupal.org/developing/api/entity'
121 title: 'Drupal 8 Entity API'
127 - ctools_export_crud_new
128 - ctools_export_crud_load
129 - ctools_export_crud_load_multiple
130 - ctools_export_crud_load_all
131 - ctools_export_crud_save
132 - ctools_export_crud_delete
133 - ctools_export_crud_export
134 - ctools_export_crud_import
135 - ctools_export_crud_set_status
136 - ctools_export_crud_enable
137 - ctools_export_crud_disable
138 - ctools_export_load_object
139 - ctools_export_load_object_reset
140 - ctools_get_default_object
141 - ctools_export_unpack_object
143 - ctools_export_object
144 - ctools_export_get_schema
145 - ctools_export_get_schemas
146 - ctools_export_get_schemas_by_module
147 - ctools_export_set_status
148 - ctools_export_set_object_status
150 - ctools_export_new_object
151 - ctools_export_to_hook_code
152 - ctools_export_default_to_hook_code
153 - ctools_export_default_list
155 fixme: 'The CTools Export API has been merged with the core entity API.'
158 message: 'The CTools object caching system has moved into core.'
161 url: 'https://www.drupal.org/node/1805940'
162 title: 'TempStore API added to core'
164 url: 'https://www.drupal.org/node/2164623'
165 title: 'Modules added to Drupal 8 core'
171 - ctools_object_cache_get
172 - ctools_object_cache_set
175 message: '`@function` has been replaced by the <current> route.'
178 url: 'https://www.drupal.org/node/2382211'
179 title: '`current_path()` replaced by the <current> route'
185 drupal_add_tabledrag:
186 message: '`@function` is now the `#tabledrag` property of a render array.'
189 url: 'https://www.drupal.org/node/2160571'
190 title: '`@function` replaced by render array attachment'
196 TableDrag is now attached with the #tabledrag property of certain render
197 arrays. @function is now internal and should never be called directly.
201 message: '`@function` has been moved into the NestedArray utility class.'
204 url: 'https://www.drupal.org/node/1870678'
205 title: '`drupal_array_*` functions replaced by static methods of `NestedArray` utility'
210 - drupal_array_merge_deep
211 - drupal_array_merge_deep_array
212 - drupal_array_get_nested_value
213 - drupal_array_set_nested_value
214 - drupal_array_unset_nested_value
215 - drupal_array_nested_key_exists
218 message: '`@function` was moved into the `cron` service.'
221 url: 'https://www.drupal.org/node/2181921'
222 title: '`@function` replaced by cron service'
228 message: '`@function` has been removed.'
231 url: 'https://www.drupal.org/node/2017339'
232 title: '`@function` removed'
237 drupal_get_query_array:
238 message: '`@function` has been removed.'
241 url: 'https://www.drupal.org/node/2079005'
242 title: '`@function` replaced by native `parse_str()` function'
247 @function has been removed in favor of PHP's native parse_str(). You should
248 use that function instead and pass a destination array by reference.
249 For more information, see:
250 https://www.drupal.org/node/2079005
251 http://www.php.net/parse_str
255 message: '`@function` has been removed.'
258 url: 'https://www.drupal.org/node/2067859'
259 title: '`@function` removed'
266 message: '`@function` has been removed.'
269 url: 'https://www.drupal.org/node/2023537'
270 title: '`@function` removed'
276 message: '`@function` has been replaced by Guzzle.'
279 url: 'https://www.drupal.org/node/1862446'
280 title: 'Guzzle HTTP client in Drupal core'
282 url: 'http://docs.guzzlephp.org/en/latest'
283 title: 'Guzzle documentation'
288 @function has been replaced by the Guzzle HTTP client, which is bundled
293 message: '`@function` has been removed.'
296 url: 'https://www.drupal.org/node/2295037'
297 title: '`@function` removed'
303 message: '`@function` has been removed.'
306 url: 'https://www.drupal.org/node/2207453'
307 title: '`@function` removed'
314 message: '`@function` has been removed.'
320 message: '`@function` has been removed.'
323 url: 'https://www.drupal.org/node/2067859'
324 title: '`@function` removed'
330 @function has been removed. There are now a few ways to set the title
331 dynamically, depending on the situation.
335 message: '`@function` has been removed.'
338 url: 'https://www.drupal.org/node/1628046'
339 title: '`@function` removed in favor of exceptions'
344 @function has been removed. If your code needs to fail, it should throw
345 a meaningful exception instead.
349 message: '`@function` has been moved into the PathValidator service.'
352 url: 'https://www.drupal.org/node/2302541'
353 title: '`@function` moved into PathValidator service'
359 message: '`@function` is now part of the Variable utility.'
362 url: 'https://www.drupal.org/node/2368411'
363 title: '`@function` moved into Variable utility'
369 message: '`@function` has been removed.'
372 url: 'https://www.drupal.org/node/2340291'
373 title: '`@function` removed'
380 message: '`@function` is now a method of the `Element` class.'
383 url: 'https://www.drupal.org/node/2173683'
384 title: '`element_*` functions moved into `Element` class'
392 - element_get_visible_children
395 - element_set_attributes
398 message: '`@function` is now a method of `EntityInterface`.'
401 url: 'https://www.drupal.org/node/2266845'
402 title: '`@function` replaced by `EntityInterface::create()`'
408 message: '`@function` replaced by methods of `EntityInterface`'
411 url: 'https://www.drupal.org/node/1724986'
412 title: '`@function` removed'
418 message: '`@function` is now a method of the EntityManager service.'
421 url: 'https://www.drupal.org/node/1929006'
422 title: '`@function` is deprecated'
428 message: '`@function` has been removed.'
431 url: 'https://www.drupal.org/node/2266845'
432 title: 'Entities are now classed objects implementing `EntityInterface`'
438 - entity_load_multiple
451 - comment_load_multiple
455 - taxonomy_term_load_multiple
457 - taxonomy_term_delete
460 message: 'The Field API CRUD functions have been removed.'
463 url: 'https://www.drupal.org/node/2012896'
464 title: 'Fields and field instances are now entities'
470 - field_create_instance
472 - field_delete_instance
475 Fields and field instances are now exportable configuration entities, and
476 the Field Info API has been removed.
480 message: '`@function` has been replaced with a field formatter plugin manager.'
483 url: 'https://www.drupal.org/node/1805846'
484 title: 'Field formatters are now plugins'
489 - field_info_formatter_types
490 - field_info_formatter_settings
493 message: '`@function` has been replaced with a field type plugin manager.'
496 url: 'https://www.drupal.org/node/2064123'
497 title: 'Field types are now plugins'
502 - field_info_field_types
503 - field_info_field_settings
506 message: '`@function` is now `FieldStorageConfig::save()`.'
509 url: 'https://www.drupal.org/node/2012896'
510 title: 'Field CRUD API replaced by Entity API'
515 field_update_instance:
516 message: '`@function` is now `FieldConfig::save()`.'
519 url: 'https://www.drupal.org/node/2012896'
520 title: 'Field CRUD API replaced by Entity API'
526 message: '`@function` is now a method of `FieldItemInterface`.'
529 url: 'https://www.drupal.org/node/2208327'
530 title: '`@function` moved into `FieldItemInterface`'
536 message: '`@function` is now a method of `FieldItemListInterface`.'
539 url: 'https://www.drupal.org/node/2208327'
540 title: '`@function` moved into `FieldItemListInterface`'
546 message: '`@function` is now a method of `WidgetInterface`.'
549 url: 'https://www.drupal.org/node/1796000'
550 title: 'Field widgets are now plugins'
555 - field_default_extract_form_values
557 - field_default_form_errors
558 - field_default_submit
559 - field_info_widget_types
562 message: '`@function` is now a method of the `file_system` service.'
565 url: 'https://www.drupal.org/node/2418133'
566 title: 'File system functions moved into `file_system` service'
575 - drupal_move_uploaded_file
580 - file_stream_wrapper_valid_scheme
584 message: '`@function` has moved into the FormBuilder service.'
587 url: 'https://www.drupal.org/node/2121003'
588 title: 'Form generation functions moved into FormBuilder service'
596 - drupal_prepare_form
597 - drupal_process_form
598 - drupal_rebuild_form
599 - drupal_redirect_form
600 - drupal_retrieve_form
601 - drupal_validate_form
602 - form_execute_handlers
608 message: '`@function` is now a method of `FormStateInterface`.'
611 url: 'https://www.drupal.org/node/2121003'
612 title: 'Form functions moved into `FormStateInterface`'
622 - form_state_defaults
623 - form_state_values_clean
626 message: '`@function` was moved into the `date.formatter` service.'
629 url: 'https://www.drupal.org/node/2173787'
630 title: '`@function` moved to date formatter service'
638 message: '`@function` was moved into the translation service.'
641 url: 'https://www.drupal.org/node/2173787'
642 title: '`@function` moved to translation service'
650 message: '`@function` has been moved into the HTML component.'
653 url: 'https://www.drupal.org/node/2388737'
654 title: 'HTML functions moved to a component'
656 - drupal_clean_css_identifer
664 message: '`@function` has been removed.'
667 url: 'https://www.drupal.org/node/1969794'
668 title: '`@function` removed'
675 message: '`@function` has moved into the Serialization component.'
678 url: 'https://www.drupal.org/node/2219113'
679 title: '`@function` moved into Serialization component'
689 message: '`@function` has been removed.'
692 url: 'https://www.drupal.org/node/2346779'
693 title: '`@function` replaced by URL generation API'
699 message: '`@function` has been removed.'
702 url: 'https://www.drupal.org/node/2240003'
703 title: 'Active trail functions replaced by `menu.active_trail` service.'
708 - menu_get_active_trail
709 - menu_link_get_preferred
710 - menu_set_active_item
711 - menu_set_active_trail
713 The active trail system has been removed in Drupal 8 because the routing and
714 linking systems have been completely rewritten. You will need to rewrite this
715 code to use the menu.active_trail service, or override the service if you need
716 to alter the active trail.
720 message: '`@function` has been removed.'
723 url: 'https://www.drupal.org/node/2203305'
724 title: '`@function` removed'
732 @function has been removed. To retrieve route information, use the
733 RouteMatch object, which you can retrieve by calling \Drupal::routeMatch().
737 message: '`@function` has been replaced by `menu.link_tree` service.'
740 url: 'https://www.drupal.org/node/2226481'
741 title: 'Menu tree building is now a service'
743 url: 'https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Menu%21MenuLinkTree.php/class/MenuLinkTree/8'
744 title: '`MenuLinkTree` documentation'
750 - menu_parent_options
753 - menu_tree_check_access
754 - menu_tree_collect_node_links
756 - menu_tree_page_data
760 @function is gone in Drupal 8. To generate or work with menu trees, you'll need to
761 use the menu.link_tree service.
765 message: '`@function` is now a method of the `module_handler` service.'
768 url: 'https://www.drupal.org/node/1894902'
769 title: '`@function` replaced by `module_handler` service'
775 message: '`@function` is now a method of the `module_handler` service.'
778 url: 'https://www.drupal.org/node/1894902'
779 title: '`@function` replaced by `module_handler` service'
784 _node_revision_access:
785 message: '`@function` was moved into an access-checking service.'
788 url: 'https://www.drupal.org/node/2328179'
789 title: '`@function` replaced'
796 message: '`@function` has been removed.'
799 url: 'https://www.drupal.org/node/2393323'
800 title: '`@function` moved into stream wrapper manager service.'
805 - file_get_stream_wrappers
806 - file_stream_wrapper_get_class
807 - file_stream_wrapper_get_instance_by_uri
808 - file_stream_wrapper_get_instance_by_scheme
811 message: '`@function` has been removed.'
814 url: 'https://www.drupal.org/node/2021435'
815 title: '`@function` replaced by `t()`'
824 message: '`@function` is now a method of the taxonomy term storage controller.'
827 url: 'https://www.drupal.org/node/2328205'
828 title: 'Certain Taxonomy API functions have moved into `TermStorage` class'
835 - taxonomy_term_load_children
836 - taxonomy_term_load_parents
837 - taxonomy_term_load_parents_all
840 message: '`@function` has been renamed to `_theme()`, and should never be called directly.'
843 url: 'https://www.drupal.org/node/2195739'
844 title: '`@function` renamed to `_theme()` and should not be called directly'
849 @function has been renamed to _theme() and should NEVER be called directly.
850 Calling _theme() directly can alter the expected output and potentially
851 introduce security issues (see https://www.drupal.org/node/2195739). You
852 should use renderable arrays instead.
856 message: 'The theme registry is now a service.'
859 url: 'https://www.drupal.org/node/2137545'
860 title: '`@function` is now two different methods of the `theme.registry` service'
866 message: 'Several low-level theme registry functions have moved.'
869 url: 'https://www.drupal.org/node/2137545'
870 title: 'Theme registry moved to `theme.registry` service'
875 - _theme_load_registry
876 - _theme_save_registry
877 - _theme_process_registry
878 - _theme_build_registry
879 - _theme_load_offline_registry
881 Several low-level theme system functions have been moved into the
882 theme.registry service.
886 message: 'The core token API is now a service.'
889 url: https://www.drupal.org/node/1973488
890 title: 'Token API is now a service'
895 - token_find_with_prefix
902 message: '`@function` has been moved into the Unicode utility class.'
905 url: 'https://www.drupal.org/node/1992584'
906 title: '`@function` moved into Unicode component'
912 - drupal_convert_to_utf8
917 - drupal_truncate_bytes
919 - drupal_validate_utf8
926 message: '`@function` has been removed.'
929 url: 'https://www.drupal.org/node/2346779'
930 title: '`@function` replaced by URL generation API'
936 message: '`@function` has been replaced by the `UrlHelper` utility.'
939 url: 'https://www.drupal.org/node/2079005'
940 title: '`@function` is now a method of `\Drupal\Component\Utility\UrlHelper`'
946 - drupal_get_query_parameters
948 - filter_xss_bad_protocol
952 message: '`@function` is now `AccountInterface::hasPermission()`.'
955 url: 'https://www.drupal.org/node/2049309'
956 title: '`@function` got converted to a method on the user/account interface'
963 message: '`@function` has been removed.'
966 url: 'https://www.drupal.org/node/2183531'
967 title: 'The Variable API has been removed'
973 message: '`@function` has been removed.'
976 url: 'https://www.drupal.org/node/2183531'
977 title: 'The Variable API has been removed'
983 message: '`@function` has been removed.'
986 url: 'https://www.drupal.org/node/2183531'
987 title: 'The Variable API has been removed'
993 message: '`@function` has been removed.'
996 url: 'https://www.drupal.org/node/2270941'
997 title: '`@function` is deprecated'