hook_stream_wrappers_alter

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_stream_wrappers_alter(&$wrappers)

Alters the list of PHP stream wrapper implementations.

See also

file_get_stream_wrappers()

hook_stream_wrappers()

Related topics

Code

modules/system/system.api.php, line 2560

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