Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HtaccessWriterInterface.php

interface HtaccessWriterInterface

Interface for managing Apache .htaccess files.

Hierarchy

  • interface \Drupal\Core\File\HtaccessWriterInterface

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

Title Sort descending Modifiers Object type Summary Overrides
HtaccessWriterInterface::defaultProtectedDirs public function Returns a list of the default protected directories. 1
HtaccessWriterInterface::ensure public function Creates a .htaccess file in each Drupal files directory if it is missing. 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal