HtaccessWriterInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/File/HtaccessWriterInterface.php
  2. 8.9.x core/lib/Drupal/Core/File/HtaccessWriterInterface.php
  3. 10 core/lib/Drupal/Core/File/HtaccessWriterInterface.php

Namespace

Drupal\Core\File

File

core/lib/Drupal/Core/File/HtaccessWriterInterface.php

View source
<?php

namespace Drupal\Core\File;


/**
 * Interface for managing Apache .htaccess files.
 */
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();

}

Interfaces

Title Deprecated Summary
HtaccessWriterInterface Interface for managing Apache .htaccess files.

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