interface ChmodInterface

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/FileTransfer/ChmodInterface.php \Drupal\Core\FileTransfer\ChmodInterface
  2. 8.9.x core/lib/Drupal/Core/FileTransfer/ChmodInterface.php \Drupal\Core\FileTransfer\ChmodInterface
  3. 10 core/lib/Drupal/Core/FileTransfer/ChmodInterface.php \Drupal\Core\FileTransfer\ChmodInterface

Defines an interface to chmod files.

Hierarchy

Expanded class hierarchy of ChmodInterface

All classes that implement ChmodInterface

Deprecated

in drupal:11.2.0 and is removed from drupal:12.0.0. There is no replacement. Use composer to manage the code for your site.

See also

https://www.drupal.org/node/3512364

File

core/lib/Drupal/Core/FileTransfer/ChmodInterface.php, line 15

Namespace

Drupal\Core\FileTransfer
View source
interface ChmodInterface {
  
  /**
   * Changes the permissions of the file / directory specified in $path.
   *
   * @param string $path
   *   Path to change permissions of.
   * @param int $mode
   *   The new file permission mode to be passed to chmod().
   * @param bool $recursive
   *   Pass TRUE to recursively chmod the entire directory specified in $path.
   *
   * @see http://php.net/chmod
   */
  public function chmodJailed($path, $mode, $recursive);

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ChmodInterface::chmodJailed public function Changes the permissions of the file / directory specified in $path. 3

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