Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / config / install / drupalmoduleupgrader.grep.yml
1 # This file controls the behavior of the Grep converter
2 # (Plugin/DMU/Converter/Grep.php). Grep is basically a dumb search
3 # and replace.
4
5 definitions:
6   # Certain common global variables were turned into service methods in
7   # Drupal 8. Any globals listed here will be expanded into three forms:
8   # global $var, $GLOBALS['var'], and $GlOBALS["var"], and each form will
9   # be replaced with the replacement string. For example, global $user
10   # will become \Drupal::currentUser().
11   globals:
12     language: '\Drupal::languageManager()->getCurrentLanguage()'
13     theme: '\Drupal::theme()->getActiveTheme()->getName()'
14     theme_key: '\Drupal::theme()->getActiveTheme()->getName()'
15     user: '\Drupal::currentUser()'
16
17   # Many Drupal 7 API functions were moved into service objects, but otherwise
18   # left untouched. Those functions are listed here. Each function name will
19   # be expanded into function(), then replaced with its replacement. You should
20   # NOT include the parentheses in the replacement string. For example,
21   # drupal_alter('baz', $my_baz) will be replaced with:
22   # \Drupal::moduleHandler()->alter('baz', $my_baz)
23   function_calls:
24     check_plain: '\Drupal\Component\Utility\Html::escape'
25     conf_path: '\Drupal\Core\DrupalKernel::findSitePath'
26     current_path: '\Drupal\Core\Url::fromRoute("<current>")->toString'
27     decode_entities: '\Drupal\Component\Utility\Html::decodeEntities'
28     drupal_alter: '\Drupal::moduleHandler()->alter'
29     drupal_array_merge_deep: '\Drupal\Component\Utility\NestedArray::mergeDeep'
30     drupal_array_merge_deep_array: '\Drupal\Component\Utility\NestedArray::mergeDeepArray'
31     drupal_array_get_nested_value: '\Drupal\Component\Utility\NestedArray::getValue'
32     drupal_array_set_nested_value: '\Drupal\Component\Utility\NestedArray::setValue'
33     drupal_array_unset_nested_value: '\Drupal\Component\Utility\NestedArray::unsetValue'
34     drupal_array_nested_key_exists: '\Drupal\Component\Utility\NestedArray::keyExists'
35     drupal_basename: '\Drupal::service("file_system")->basename'
36     drupal_build_form: '\Drupal::formBuilder()->buildForm'
37     drupal_chmod: '\Drupal::service("file_system")->chmod'
38     drupal_clean_css_identifier: '\Drupal\Component\Utility\Html::cleanCssIdentifier'
39     drupal_clear_css_cache: '\Drupal::service("asset.css.collection_optimizer")->deleteAll'
40     drupal_clear_js_cache: '\Drupal::service("asset.js.collection.optimizer")->deleteAll'
41     drupal_convert_to_utf8: '\Drupal\Component\Utility\Unicode::convertToUtf8'
42     drupal_cron_run: '\Drupal::service("cron")->run'
43     drupal_dirname: '\Drupal::service("file_system")->dirname'
44     drupal_encode_path: '\Drupal\Component\Utility\UrlHelper::encodePath'
45     drupal_form_submit: '\Drupal::formBuilder()->submitForm'
46     drupal_get_form: '\Drupal::formBuilder()->getForm'
47     drupal_get_query_parameters: '\Drupal\Component\Utility\UrlHelper::filterQueryParameters'
48     drupal_hash_base64: '\Drupal\Component\Utility\Crypt::hashBase64'
49     drupal_hmac_base64: '\Drupal\Component\Utility\Crypt::hmacBase64'
50     drupal_html_class: '\Drupal\Component\Utility\Html::getClass'
51     drupal_html_id: '\Drupal\Component\Utility\Html::getId'
52     drupal_json_encode: '\Drupal\Component\Serialization\Json::encode'
53     drupal_json_decode: '\Drupal\Component\Serialization\Json::decode'
54     drupal_mkdir: '\Drupal::service("file_system")->mkdir'
55     drupal_move_uploaded_file: '\Drupal::service("file_system")->moveUploadedFile'
56     drupal_parse_dependency: '\Drupal\Core\Extension\ModuleHandler::parseDependency'
57     drupal_parse_url: '\Drupal\Component\Utility\UrlHelper::parse'
58     drupal_prepare_form: '\Drupal::formBuilder()->prepareForm'
59     drupal_process_form: '\Drupal::formBuilder()->processForm'
60     drupal_random_bytes: '\Drupal\Component\Utility\Crypt::randomBytes'
61     drupal_realpath: '\Drupal::service("file_system")->realpath'
62     drupal_rebuild_form: '\Drupal::formBuilder()->rebuildForm'
63     drupal_redirect_form: '\Drupal::formBuilder()->redirectForm'
64     drupal_render: '\Drupal::service("renderer")->render'
65     drupal_retrieve_form: '\Drupal::formBuilder()->retrieveForm'
66     drupal_rmdir: '\Drupal::service("file_system")->rmdir'
67     drupal_strlen: '\Drupal\Component\Utility\Unicode::strlen'
68     drupal_strtolower: '\Drupal\Component\Utility\Unicode::strtolower'
69     drupal_strtoupper: '\Drupal\Component\Utility\Unicode::strtoupper'
70     drupal_substr: '\Drupal\Component\Utility\Unicode::substr'
71     drupal_tempnam: '\Drupal::service("file_system")->tempnam'
72     drupal_truncate_bytes: '\Drupal\Component\Utility\Unicode::truncateBytes'
73     drupal_ucfirst: '\Drupal\Component\Utility\Unicode::ucfirst'
74     drupal_unlink: '\Drupal::service("file_system")->unlink'
75     drupal_valid_path: '\Drupal::service("path.validator")->isValid'
76     drupal_validate_form: '\Drupal::service("form_validator")->validateForm'
77     drupal_validate_utf8: '\Drupal\Component\Utility\Unicode::validateUtf8'
78     drupal_var_export: '\Drupal\Component\Utility\Variable::export'
79     element_child: '\Drupal\Core\Render\Element::child'
80     element_children: '\Drupal\Core\Render\Element::children'
81     element_get_visible_children: '\Drupal\Core\Render\Element::getVisibleChildren'
82     element_properties: '\Drupal\Core\Render\Element::properties'
83     element_property: '\Drupal\Core\Render\Element::property'
84     element_set_attributes: '\Drupal\Core\Render\Element::setAttributes'
85     entity_info_cache_clear: '\Drupal::entityManager()->clearCachedDefinitions'
86     field_attach_create_bundle: '\Drupal::entityManager()->onBundleCreate'
87     field_attach_delete_bundle: '\Drupal::entityManager()->onBundleDelete'
88     field_attach_rename_bundle: '\Drupal::entityManager()->onBundleRename'
89     field_cache_clear: '\Drupal::entityManager()->clearCachedFieldDefinitions'
90     field_info_cache_clear: '\Drupal::entityManager()->clearCachedBundles'
91     field_info_field_settings: '\Drupal::service("plugin.manager.field.field_type")->getDefaultSettings'
92     field_info_formatter_settings: '\Drupal::service("plugin.manager.field.formatter")->getDefaultSettings'
93     field_info_instance_settings: '\Drupal::service("plugin.manager.field.field_type")->getDefaultInstanceSettings'
94     field_info_widget_settings: '\Drupal::service("plugin.manager.field.widget")->getDefaultSettings'
95     file_get_stream_wrappers: '\Drupal::service("stream_wrapper_manager")->getWrappers'
96     file_stream_wrapper_get_class: '\Drupal::service("stream_wrapper_manager")->getClass'
97     file_stream_wrapper_get_instance_by_uri: '\Drupal::service("stream_wrapper_manager")->getViaUri'
98     file_stream_wrapper_get_instance_by_scheme: '\Drupal::service("stream_wrapper_manager")->getViaScheme'
99     file_stream_wrapper_valid_scheme: '\Drupal::service("file_system")->validScheme'
100     file_uri_scheme: '\Drupal::service("file_system")->uriScheme'
101     filter_xss: '\Drupal\Component\Utility\Xss::filter'
102     filter_xss_admin: '\Drupal\Component\Utility\Xss::filterAdmin'
103     filter_xss_bad_protocol: '\Drupal\Component\Utility\UrlHelper::filterBadProtocol'
104     form_get_cache: '\Drupal::formBuilder()->getCache'
105     form_set_cache: '\Drupal::formBuilder()->setCache'
106     format_interval: '\Drupal::service("date.formatter")->formatInterval'
107     format_plural: '\Drupal::translation()->formatPlural'
108     image_dimensions_scale: '\Drupal\Component\Image\Image::scaleDimensions'
109     ip_address: '\Drupal::request()->getClientIp'
110     lock_acquire: '\Drupal::lock()->acquire'
111     lock_release: '\Drupal::lock()->release'
112     lock_release_all: '\Drupal::lock()->releaseAll'
113     lock_wait: '\Drupal::lock()->wait'
114     menu_get_object: '\Drupal::routeMatch()->getParameter'
115     menu_tree_output: '\Drupal::menuTree()->build'
116     mime_header_decode: '\Drupal\Component\Utility\Unicode::mimeHeaderDecode'
117     mime_header_encode: '\Drupal\Component\Utility\Unicode::mimeHeaderEncode'
118     _module_build_dependencies: '\Drupal::moduleHandler()->buildModuleDependencies'
119     module_exists: '\Drupal::moduleHandler()->moduleExists'
120     module_hook: '\Drupal::moduleHandler()->implementsHook'
121     module_implements: '\Drupal::moduleHandler()->getImplementations'
122     module_implements_reset: '\Drupal::moduleHandler()->resetImplementations'
123     module_install: '\Drupal::moduleHandler()->install'
124     module_load_all_includes: '\Drupal::moduleHandler()->loadAllIncludes'
125     module_uninstall: '\Drupal::moduleHandler()->uninstall'
126     path_to_theme: '\Drupal::theme()->getActiveTheme()->getPath'
127     taxonomy_get_tree: '\Drupal::entityManager()->getStorage("taxonomy_term")->loadTree'
128     taxonomy_get_vocabularies: '\Drupal\taxonomy\Entity\Vocabulary::loadMultiple'
129     taxonomy_term_load: '\Drupal::entityManager()->getStorage("taxonomy_term")->load'
130     taxonomy_term_load_children: '\Drupal::entityManager()->getStorage("taxonomy_term")->loadChildren'
131     taxonomy_term_load_parents: '\Drupal::entityManager()->getStorage("taxonomy_term")->loadParents'
132     taxonomy_term_load_parents_all: '\Drupal::entityManager()->getStorage("taxonomy_term")->loadParentsAll'
133     token_find_with_prefix: '\Drupal::token()->findWithPrefix'
134     token_info: '\Drupal::token()->getInfo'
135     token_generate: '\Drupal::token()->generate'
136     token_replace: '\Drupal::token()->replace'
137     token_scan: '\Drupal::token()->scan'
138     truncate_utf8: '\Drupal\Component\Utility\Unicode::truncate'
139     unicode_check: '\Drupal\Component\Utility\Unicode::check'
140     url_is_external: '\Drupal\Component\Utility\UrlHelper::isExternal'
141     user_authenticate: '\Drupal::service("user.auth")->authenticate'
142     user_is_anonymous: '\Drupal::currentUser()->isAnonymous'
143     user_is_logged_in: '\Drupal::currentUser()->isAuthenticated'
144
145   # Common global constants were generally moved into classes and interfaces.
146   # Each listed constant is replaced literally (no pre-processing) with the
147   # replacement string. So for example, $node->foo[LANGUAGE_NONE] will be
148   # replaced with:
149   # $node->foo[\Drupal\Core\Language\Language::LANGCODE_NOT_SPECIFIED]
150   constants:
151     CACHE_PERMANENT: '\Drupal\Core\Cache\Cache::PERMANENT'
152     COMMENT_FORM_BELOW: '\Drupal\comment\Plugin\Field\FieldType\CommentItem::FORM_BELOW'
153     COMMENT_FORM_SEPARATE_PAGE: '\Drupal\comment\Plugin\Field\FieldType\CommentItem::FORM_SEPARATE_PAGE'
154     COMMENT_MODE_FLAT: '\Drupal\comment\CommentManagerInterface::COMMENT_MODE_FLAT'
155     DRUPAL_ANONYMOUS_RID: '\Drupal\Core\Session\AccountInterface::ANONYMOUS_ROLE'
156     DRUPAL_AUTHENTICATED_RID: '\Drupal\Core\Session\AccountInterface::AUTHENTICATED_RID'
157     DRUPAL_ROOT: '\Drupal::root()'
158     FILE_CHMOD_DIRECTORY: '\Drupal\Core\File\FileSystem::CHMOD_DIRECTORY'
159     FILE_CHMOD_FILE: '\Drupal\Core\File\FileSystem::CHMOD_FILE'
160     LANGUAGE_LTR: '\Drupal\Core\Language\Language::LANGUAGE_LTR'
161     LANGUAGE_NONE: '\Drupal\Core\Language\Language::LANGCODE_NOT_SPECIFIED'
162     LANGUAGE_RTL: '\Drupal\Core\Language\Language::LANGUAGE_RTL'
163     PREG_CLASS_UNICODE_WORD_BOUNDARY: '\Drupal\Component\Utility\Unicode::PREG_CLASS_WORD_BOUNDARY'
164     UNICODE_ERROR: '\Drupal\Component\Utility\Unicode::STATUS_ERROR'
165     UNICODE_MULTIBYTE: '\Drupal\Component\Utility\Unicode::STATUS_MULTIBYTE'
166     UNICODE_SINGLEBYTE: '\Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE'