Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_static_reset core/includes/bootstrap.inc Resets one or all centrally stored static variable(s). 8 1
drupal_valid_test_ua core/includes/bootstrap.inc Returns the test prefix if this is an internal request from a test. 15
drupal_verify_install_file core/includes/install.inc Verifies the state of the specified file. 5
drupal_verify_profile core/includes/install.inc Verifies that all dependencies are met for a given installation profile. 2
editor_filter_xss

in drupal:11.4.0 and is removed from drupal:13.0.0. Instead, use the method ::filterXss() from the element.editor service.

core/modules/editor/editor.module Applies text editor XSS filtering.
editor_image_upload_settings_form

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\editor\EditorImageUploadSettings::getForm() instead.

core/modules/editor/editor.admin.inc Subform constructor to configure the text editor's image upload settings.
editor_removed_post_updates core/modules/editor/editor.post_update.php Implements hook_removed_post_updates().
editor_update_last_removed core/modules/editor/editor.install Implements hook_update_last_removed().
entity_test_create_bundle

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::createBundle() instead.

core/modules/system/tests/modules/entity_test/entity_test.module Creates a new bundle for entity_test entities.
entity_test_delete_bundle

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead.

core/modules/system/tests/modules/entity_test/entity_test.module Deletes a bundle for entity_test entities.
entity_test_install core/modules/system/tests/modules/entity_test/entity_test.install Implements hook_install(). 4 2
entity_test_schema core/modules/system/tests/modules/entity_test/entity_test.install Implements hook_schema().
entity_test_update_8001 core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8001.inc Makes the 'user_id' field multiple and migrate its data.
entity_test_update_8001 core/modules/system/tests/modules/entity_test/update/status_report_8001.inc Test update.
entity_test_update_8002 core/modules/system/tests/modules/entity_test/update/status_report_8002.inc Test update.
entity_test_update_8002 core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8002.inc Makes the 'user_id' field single and migrate its data.
error_displayable core/includes/errors.inc Determines whether an error should be displayed. 4
failed_22_update core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php Simulates a hook_update_N functions.
field_form_field_config_edit_form_entity_builder

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

core/modules/field/field.module Entity form builder for field config edit form.
field_post_update_clear_purge_batch_size core/modules/field/field.post_update.php Removes the purge_batch_size config.
field_purge_batch

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal\Core\Field\FieldPurger::purgeBatch() instead.

core/modules/field/field.purge.inc Purges a batch of deleted Field API data, field storages, or fields.
field_purge_field

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

core/modules/field/field.purge.inc Purges a field record from the database.
field_purge_field_storage

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

core/modules/field/field.purge.inc Purges a field record from the database.
field_removed_post_updates core/modules/field/field.post_update.php Implements hook_removed_post_updates().
field_ui_form_manage_field_form_submit

in drupal:11.4.0 and is removed from drupal:12.0.0. Use \Drupal\field_ui\Hook\FieldUiHooks::manageFieldFormSubmit() instead.

core/modules/field_ui/field_ui.module Form submission handler for the 'Save and manage fields' button.
field_update_last_removed core/modules/field/field.install Implements hook_update_last_removed().
file_field_find_file_reference_column

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

core/modules/file/file.module Determine whether a field references files stored in {file_managed}. 1
file_get_file_references

in drupal:11.4.0 and is removed from drupal:13.0.0. Use \Drupal::service(\Drupal\file\FileReferenceResolver::class) instead.

core/modules/file/file.module Retrieves a list of references to a file. 2 1
file_managed_file_save_upload core/modules/file/file.module Saves any files that have been uploaded into a managed_file element. 1
file_removed_post_updates core/modules/file/file.post_update.php Implements hook_removed_post_updates().
file_save_upload core/modules/file/file.module Saves file uploads to a new location. 3
file_schema core/modules/file/file.install Implements hook_schema().
file_update_last_removed core/modules/file/file.install Implements hook_update_last_removed().
filter_default_format

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the \Drupal\filter\FilterFormatRepositoryInterface service with the ::getDefaultFormat() method instead.

core/modules/filter/filter.module Returns the ID of the default text format for a particular user. 1
filter_fallback_format

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the \Drupal\filter\FilterFormatRepositoryInterface service with the ::getFallbackFormatId() method instead.

core/modules/filter/filter.module Returns the ID of the fallback text format that all users have access to. 1
filter_formats

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the Drupal\filter\FilterFormatRepositoryInterface service with the ::getAllFormats() method to get all formats, or with the ::getFormatsForAccount() method to get all formats that a user is able to access.

core/modules/filter/filter.module Retrieves a list of enabled text formats, ordered by weight. 3
filter_formats_reset

in drupal:11.4.0 and is removed from drupal:13.0.0. Invalidate 'filter_formats' entity type list cache tags instead.

core/modules/filter/filter.module Resets the text format caches.
filter_get_formats_by_role

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the \Drupal\filter\FilterFormatRepositoryInterface service with the ::getFormatsByRole() method instead.

core/modules/filter/filter.module Retrieves a list of text formats that are allowed for a given role.
filter_get_roles_by_format

in drupal:11.4.0 and is removed from drupal:13.0.0. Use the \Drupal\filter\FilterFormatInterface::getRoles() method instead.

core/modules/filter/filter.module Retrieves a list of roles that are allowed to use a given text format.
filter_removed_post_updates core/modules/filter/filter.post_update.php Implements hook_removed_post_updates().
form_get_options core/includes/form.inc Returns the indexes of a select element's options matching a given key.
form_select_options core/includes/form.inc Converts the options in a select element into a structured array for output. 1
get_defined_functions core/tests/Drupal/Tests/Core/Theme/RegistryTest.php Overrides get_defined_functions() with a configurable mock.
help_post_update_search_help_dependencies core/modules/help/help.post_update.php Update config entity dependencies to the Search Help module, if necessary.
help_removed_post_updates core/modules/help/help.post_update.php Implements hook_removed_post_updates().
help_update_last_removed core/modules/help/help.install Implements hook_update_last_removed().
hide

in drupal:11.4.0 and is removed from drupal:13.0.0. To hide form elements, use ['#access'] = FALSE. For render elements, use ['#printed'] = TRUE.

core/includes/common.inc Hides an element from later rendering. 1 10
hold_test_install core/modules/system/tests/modules/hold_test/hold_test.install Implements hook_install().
hook_admin_content_form_ignore_form_ids core/themes/admin/admin.api.php Register form IDs that should not use the content form.
hook_admin_content_form_routes core/themes/admin/admin.api.php Register routes to apply admin’s content edit form layout.

Other projects


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