Functions - main - drupal
| Title | Deprecated | File name | Summary | Direct uses | Strings |
|---|---|---|---|---|---|
| drupal_phpunit_find_extension_directories | core/ |
Finds all valid extension directories recursively within a given directory. | 1 | ||
| drupal_phpunit_get_extension_namespaces | core/ |
Registers the namespace for each extension directory with the autoloader. | 1 | ||
| drupal_phpunit_populate_class_loader | core/ |
Populate class loader with additional namespaces for tests. | 1 | ||
| drupal_rebuild | core/ |
Rebuilds all caches even when Drupal itself does not work. | 1 | ||
| drupal_register_shutdown_function | core/ |
Registers a function for execution on shutdown. | 14 | 2 | |
| drupal_requirements_url | core/ |
Returns a URL for proceeding to the next page after a requirements problem. | 1 | ||
| drupal_static | core/ |
Provides central static variable storage. | 14 | ||
| drupal_static_reset | core/ |
Resets one or all centrally stored static variable(s). | 14 | 1 | |
| drupal_valid_test_ua | core/ |
Returns the test prefix if this is an internal request from a test. | 15 | ||
| drupal_verify_install_file | core/ |
Verifies the state of the specified file. | 5 | ||
| drupal_verify_profile | core/ |
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/ |
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/ |
Subform constructor to configure the text editor's image upload settings. | ||
| editor_removed_post_updates | core/ |
Implements hook_removed_post_updates(). | |||
| editor_update_last_removed | core/ |
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/ |
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/ |
Deletes a bundle for entity_test entities. | ||
| entity_test_install | core/ |
Implements hook_install(). | 4 | 2 | |
| entity_test_schema | core/ |
Implements hook_schema(). | |||
| entity_test_update_8001 | core/ |
Makes the 'user_id' field multiple and migrate its data. | |||
| entity_test_update_8001 | core/ |
Test update. | |||
| entity_test_update_8002 | core/ |
Test update. | |||
| entity_test_update_8002 | core/ |
Makes the 'user_id' field single and migrate its data. | |||
| error_displayable | core/ |
Determines whether an error should be displayed. | 4 | ||
| failed_22_update | core/ |
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/ |
Entity form builder for field config edit form. | ||
| field_purge_batch | core/ |
Purges a batch of deleted Field API data, field storages, or fields. | 13 | ||
| field_purge_field | core/ |
Purges a field record from the database. | 1 | ||
| field_purge_field_storage | core/ |
Purges a field record from the database. | 1 | ||
| field_removed_post_updates | core/ |
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/ |
Form submission handler for the 'Save and manage fields' button. | ||
| field_update_last_removed | core/ |
Implements hook_update_last_removed(). | |||
| file_field_find_file_reference_column | core/ |
Determine whether a field references files stored in {file_managed}. | 1 | ||
| file_get_file_references | core/ |
Retrieves a list of references to a file. | 2 | ||
| file_managed_file_save_upload | core/ |
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/ |
Adds a value for the 'playsinline' setting of the 'file_video' formatter. | ||
| file_removed_post_updates | core/ |
Implements hook_removed_post_updates(). | |||
| file_save_upload | core/ |
Saves file uploads to a new location. | 3 | ||
| file_schema | core/ |
Implements hook_schema(). | |||
| file_update_last_removed | core/ |
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/ |
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/ |
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/ |
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/ |
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/ |
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/ |
Retrieves a list of roles that are allowed to use a given text format. | ||
| filter_removed_post_updates | core/ |
Implements hook_removed_post_updates(). | |||
| form_get_options | core/ |
Returns the indexes of a select element's options matching a given key. | |||
| form_select_options | core/ |
Converts the options in a select element into a structured array for output. | 1 | ||
| get_defined_functions | core/ |
Overrides get_defined_functions() with a configurable mock. |
Pagination
- Previous page
- Page 3
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.