1 system.api.php hook_stream_wrappers_alter(&$wrappers)

Alters the list of PHP stream wrapper implementations.

See also

file_get_stream_wrappers()

hook_stream_wrappers()

Related topics

File

core/modules/system/system.api.php, line 2157
Hooks provided by Backdrop core and the System module.

Code

function hook_stream_wrappers_alter(&$wrappers) {
  // Change the name of private files to reflect the performance.
  $wrappers['private']['name'] = t('Slow files');
}