Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_phpunit_find_extension_directories core/tests/bootstrap.php Finds all valid extension directories recursively within a given directory. 1
drupal_phpunit_get_extension_namespaces core/tests/bootstrap.php Registers the namespace for each extension directory with the autoloader. 1
drupal_phpunit_populate_class_loader core/tests/bootstrap.php Populate class loader with additional namespaces for tests. 1
drupal_rebuild core/includes/utility.inc Rebuilds all caches even when Drupal itself does not work. 1
drupal_register_shutdown_function core/includes/bootstrap.inc Registers a function for execution on shutdown. 14 2
drupal_requirements_url core/includes/install.inc Returns a URL for proceeding to the next page after a requirements problem. 1
drupal_static core/includes/bootstrap.inc Provides central static variable storage. 14
drupal_static_reset core/includes/bootstrap.inc Resets one or all centrally stored static variable(s). 14 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_purge_batch core/modules/field/field.purge.inc Purges a batch of deleted Field API data, field storages, or fields. 13
field_purge_field core/modules/field/field.purge.inc Purges a field record from the database. 1
field_purge_field_storage core/modules/field/field.purge.inc Purges a field record from the database. 1
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 core/modules/file/file.module Determine whether a field references files stored in {file_managed}. 1
file_get_file_references core/modules/file/file.module Retrieves a list of references to a file. 2
file_managed_file_save_upload core/modules/file/file.module Saves any files that have been uploaded into a managed_file element. 1
file_post_update_add_playsinline

in drupal:12.3.0 and is removed from drupal:13.0.0. This was rolled back due to a bug in the implementation and is now a no-op function and is kept only to prevent errors when updating.

core/modules/file/file.post_update.php Adds a value for the 'playsinline' setting of the 'file_video' formatter.
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.

Other projects


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