function HtaccessWriterInterface::ensure

Same name in other branches
  1. 9 core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface::ensure()
  2. 10 core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface::ensure()
  3. 11.x 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\File

Code

public function ensure();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.