Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
install_verify_database_settings core/includes/install.core.inc Verifies that settings.php specifies a valid database connection. 1
install_verify_requirements core/includes/install.core.inc Verifies the requirements for installing Drupal.
jsonapi_install core/modules/jsonapi/jsonapi.install Implements hook_install().
jsonapi_update_last_removed core/modules/jsonapi/jsonapi.install Implements hook_update_last_removed().
language_configuration_element_submit core/modules/language/language.module Submit handler for the forms that have a language_configuration element. 4
language_get_browser_drupal_langcode_mappings core/modules/language/language.module Returns language mappings between browser and Drupal language codes. 1
language_get_default_langcode core/modules/language/language.module Returns the default language code assigned to an entity type and a bundle. 4
language_negotiation_url_prefixes_update core/modules/language/language.module Update the list of prefixes from the installed languages. 1
language_process_language_select core/modules/language/language.module Processes a language select list form element. 1
language_removed_post_updates core/modules/language/language.post_update.php Implements hook_removed_post_updates().
language_update_last_removed core/modules/language/language.install Implements hook_update_last_removed().
layout_builder_removed_post_updates core/modules/layout_builder/layout_builder.post_update.php Implements hook_removed_post_updates().
layout_builder_schema core/modules/layout_builder/layout_builder.install Implements hook_schema().
layout_builder_update_last_removed core/modules/layout_builder/layout_builder.install Implements hook_update_last_removed().
layout_discovery_removed_post_updates core/modules/layout_discovery/layout_discovery.post_update.php Implements hook_removed_post_updates().
legacy_hook_test_test1 core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module #[LegacyHook]
legacy_hook_test_test2 core/modules/system/tests/modules/legacy_hook_test/legacy_hook_test.module
locale_config_batch_build core/modules/locale/locale.bulk.inc Creates a locale batch to refresh specific configuration. 1
locale_config_batch_finished core/modules/locale/locale.bulk.inc Implements callback_batch_finished(). 1 1
locale_config_batch_update_components core/modules/locale/locale.bulk.inc Builds a locale batch to refresh configuration. 5
locale_config_batch_update_config_translations core/modules/locale/locale.bulk.inc Implements callback_batch_operation(). 1
locale_config_batch_update_default_config_langcodes core/modules/locale/locale.bulk.inc Implements callback_batch_operation(). 1
locale_cron_fill_queue

in drupal:11.4.0 and is removed from drupal:13.0.0. There is no replacement.

core/modules/locale/locale.translation.inc Populate a queue with project to check for translation updates.
locale_form_language_admin_add_form_alter_submit core/modules/locale/locale.module Form submission handler for language_admin_add_form(). 1
locale_form_language_admin_edit_form_alter_submit core/modules/locale/locale.module Form submission handler for language_admin_edit_form(). 1
locale_get_plural core/modules/locale/locale.module Returns plural form index for a specific number. 2 2
locale_install core/modules/locale/locale.install Implements hook_install().
locale_is_translatable core/modules/locale/locale.module Checks whether $langcode is a language supported as a locale target. 8
locale_js_translate core/modules/locale/locale.module Returns a list of translation files given a list of JavaScript files. 1
locale_post_update_clear_translation_path_config core/modules/locale/locale.post_update.php Removes the translation.path config.
locale_removed_post_updates core/modules/locale/locale.post_update.php Implements hook_removed_post_updates().
locale_schema core/modules/locale/locale.install Implements hook_schema().
locale_string_is_safe core/modules/locale/locale.module Check that a string is safe to be added or imported as a translation. 4
locale_system_file_system_settings_submit

in drupal:11.4.0 and is removed from drupal:12.0.0. There is no replacement.

core/modules/locale/locale.module Submit handler for the file system settings form.
locale_system_remove core/modules/locale/locale.module Delete translation history of modules and themes. 2
locale_system_set_config_langcodes core/modules/locale/locale.module Updates default configuration when new modules or themes are installed. 2
locale_system_update core/modules/locale/locale.module Imports translations when new modules or themes are installed. 2
locale_test_uninstall core/modules/locale/tests/modules/locale_test/locale_test.install Implements hook_uninstall().
locale_translatable_language_list core/modules/locale/locale.module Returns list of translatable languages. 14
locale_translate_batch_build core/modules/locale/locale.bulk.inc Build a locale batch from an array of files. 1
locale_translate_batch_finished core/modules/locale/locale.bulk.inc Implements callback_batch_finished(). 1 1
locale_translate_batch_import core/modules/locale/locale.bulk.inc Implements callback_batch_operation(). 1 1
locale_translate_batch_import_save core/modules/locale/locale.bulk.inc Implements callback_batch_operation(). 1
locale_translate_batch_refresh core/modules/locale/locale.bulk.inc Implements callback_batch_operation(). 1
locale_translate_delete_translation_files

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->deleteTranslationFiles($projects, $langcodes) instead.

core/modules/locale/locale.bulk.inc Deletes interface translation files and translation history records.
locale_translate_file_attach_properties

in drupal:11.4.0 and is removed from drupal:13.0.0. Use LocaleFile::createFromPath($filename, $uri, $langCodeOverride) instead.

core/modules/locale/locale.bulk.inc Generates file properties from filename and options.
locale_translate_file_create

in drupal:11.4.0 and is removed from drupal:13.0.0. Use LocaleFile instead.

core/modules/locale/locale.bulk.inc Creates a file object and populates the timestamp and hash properties.
locale_translate_get_interface_translation_files

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFileManager::class) ->getInterfaceTranslationFiles($projects, $langcodes) instead.

core/modules/locale/locale.bulk.inc Get interface translation files present in the translations directory.
locale_translation_batch_fetch_build

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(LocaleFetch::class) ->batchFetchBuild($projects, $langcodes, $options) instead.

core/modules/locale/locale.fetch.inc Builds a batch to download and import project translations.
locale_translation_batch_fetch_download core/modules/locale/locale.batch.inc Implements callback_batch_operation(). 1 3

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.