function HtaccessWriterInterface::ensure
Same name in other branches
- 9 core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface::ensure()
- 8.9.x core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface::ensure()
- 10 core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface::ensure()
Creates a .htaccess file in each Drupal files directory if it is missing.
1 method overrides HtaccessWriterInterface::ensure()
- HtaccessWriter::ensure in core/
lib/ Drupal/ Core/ File/ HtaccessWriter.php - Creates a .htaccess file in each Drupal files directory if it is missing.
File
-
core/
lib/ Drupal/ Core/ File/ HtaccessWriterInterface.php, line 13
Class
- HtaccessWriterInterface
- Interface for managing Apache .htaccess files.
Namespace
Drupal\Core\FileCode
public function ensure();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.