You are here

interface HtaccessWriterInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface
  2. 9 core/lib/Drupal/Core/File/HtaccessWriterInterface.php \Drupal\Core\File\HtaccessWriterInterface

Interface for managing Apache .htaccess files.

Hierarchy

Expanded class hierarchy of HtaccessWriterInterface

All classes that implement HtaccessWriterInterface

File

core/lib/Drupal/Core/File/HtaccessWriterInterface.php, line 8

Namespace

Drupal\Core\File
View source
interface HtaccessWriterInterface {

  /**
   * Creates a .htaccess file in each Drupal files directory if it is missing.
   */
  public function ensure();

  /**
   * Returns a list of the default protected directories.
   *
   * @return \Drupal\Core\File\ProtectedDirectory[]
   *   The default protected directories.
   */
  public function defaultProtectedDirs();

}

Members