file_htaccess_lines($private= TRUE)
Returns the standard .htaccess lines that Drupal writes to file directories.
bool $private: (Optional) Set to FALSE to return the .htaccess lines for a web-accessible public directory. The default is TRUE, which returns the .htaccess lines for a private directory that should not be web-accessible.
string The desired contents of the .htaccess file.
in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0. Use \Drupal\Component\PhpStorage\FileStorage::htaccessLines().
function file_htaccess_lines($private = TRUE) { return FileStorage::htaccessLines($private); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!file.inc/function/file_htaccess_lines/8.1.x