Functions - 9.5.x - drupal
Title | Deprecated | File name | Summary | Direct uses | Strings |
---|---|---|---|---|---|
file_managed_file_save_upload | core/ |
Saves any files that have been uploaded into a managed_file element. | 1 | ||
file_managed_file_submit | core/ |
Form submission handler for upload / remove buttons of managed_file elements. | 2 | ||
file_move | in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\file\FileRepositoryInterface::move() instead. |
core/ |
Moves a file to a new location and update the file's database entry. | 1 | |
file_munge_filename | in drupal:9.2.0 and is removed from drupal:10.0.0. Dispatch a \Drupal\Core\File\Event\FileUploadSanitizeNameEvent event instead. |
core/ |
Modifies a filename as needed for security purposes. | 6 | |
file_post_update_add_txt_if_allows_insecure_extensions | core/ |
Add txt to allowed extensions for all fields that allow uploads of insecure files. | |||
file_progress_implementation | core/ |
Determines the preferred upload progress implementation. | 4 | ||
file_requirements | core/ |
Implements hook_requirements(). | |||
file_save_data | in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\file\FileRepositoryInterface::writeData() instead. |
core/ |
Saves a file to the specified destination and creates a database entry. | 1 | |
file_save_upload | core/ |
Saves file uploads to a new location. | 6 | ||
file_schema | core/ |
Implements hook_schema(). | |||
file_test_entity_type_alter | core/ |
Implements hook_entity_info_alter(). | |||
file_test_file_copy | core/ |
Implements hook_file_copy(). | |||
file_test_file_download | core/ |
Implements hook_file_download(). | |||
file_test_file_insert | core/ |
Implements hook_ENTITY_TYPE_insert() for file entities. | |||
file_test_file_load | core/ |
Implements hook_ENTITY_TYPE_load() for file entities. | |||
file_test_file_mimetype_mapping_alter | core/ |
Implements hook_file_mimetype_mapping_alter(). | |||
file_test_file_move | core/ |
Implements hook_file_move(). | |||
file_test_file_predelete | core/ |
Implements hook_ENTITY_TYPE_predelete() for file entities. | |||
file_test_file_scan_callback | core/ |
Helper function for testing FileSystemInterface::scanDirectory(). | 2 | 1 | |
file_test_file_scan_callback_reset | core/ |
Reset static variables used by file_test_file_scan_callback(). | 1 | ||
file_test_file_update | core/ |
Implements hook_ENTITY_TYPE_update() for file entities. | |||
file_test_file_url_alter | core/ |
Implements hook_file_url_alter(). | |||
file_test_file_validate | core/ |
Implements hook_file_validate(). | |||
file_test_get_all_calls | core/ |
Get an array with the calls for all hooks. | 2 | ||
file_test_get_calls | core/ |
Gets the arguments passed to a given hook invocation. | 2 | ||
file_test_reset | core/ |
Reset/initialize the history of calls to the file_* hooks. | 22 | ||
file_test_set_return | core/ |
Assign a return value for a given operation. | 3 | ||
file_test_validator | core/ |
Helper validator that returns the $errors parameter. | |||
file_theme | core/ |
Implements hook_theme(). | |||
file_tokens | core/ |
Implements hook_tokens(). | |||
file_token_info | core/ |
Implements hook_token_info(). | |||
file_unmunge_filename | in drupal:9.2.0 and is removed from drupal:10.0.0. Use str_replace() instead. |
core/ |
Undoes the effect of file_munge_filename(). | 1 | |
file_update_last_removed | core/ |
Implements hook_update_last_removed(). | |||
file_url_transform_relative | in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\File\FileUrlGenerator::transformRelative() instead. |
core/ |
Transforms an absolute URL of a local file to a relative URL. | 1 | |
file_validate | core/ |
Checks that a file meets the criteria specified by the validators. | 10 | ||
file_validate_extensions | core/ |
Checks that the filename ends with an allowed extension. | 2 | ||
file_validate_image_resolution | core/ |
Verifies that image dimensions are within the specified maximum and minimum. | 1 | ||
file_validate_is_image | core/ |
Checks that the file is recognized as a valid image. | 1 | ||
file_validate_name_length | core/ |
Checks for files with names longer than can be stored in the database. | 1 | ||
file_validate_size | core/ |
Checks that the file's size is below certain limits. | 1 | ||
filter_default_format | core/ |
Returns the ID of the default text format for a particular user. | 25 | 1 | |
filter_fallback_format | core/ |
Returns the ID of the fallback text format that all users have access to. | 7 | 1 | |
filter_filter_secure_image_alter | core/ |
Implements hook_filter_secure_image_alter(). | |||
filter_formats | core/ |
Retrieves a list of enabled text formats, ordered by weight. | 18 | 4 | |
filter_formats_reset | core/ |
Resets the text format caches. | 7 | ||
filter_get_formats_by_role | core/ |
Retrieves a list of text formats that are allowed for a given role. | 1 | ||
filter_get_roles_by_format | core/ |
Retrieves a list of roles that are allowed to use a given text format. | 7 | ||
filter_help | core/ |
Implements hook_help(). | |||
filter_test_filter_format_disable | core/ |
Implements hook_filter_format_disable(). | |||
filter_test_filter_format_insert | core/ |
Implements hook_ENTITY_TYPE_insert(). |
Pagination
- Previous page
- Page 16
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.