Image::chmod

protected Image::chmod($uri, $mode = NULL)

Provides a wrapper for drupal_chmod() to allow unit testing.

@todo Remove when https://www.drupal.org/node/2050759 is in.

Parameters

string $uri: A string containing a URI file, or directory path.

int $mode: Integer value for the permissions. Consult PHP chmod() documentation for more information.

Return value

bool TRUE for success, FALSE in the event of an error.

See also

drupal_chmod()

File

core/lib/Drupal/Core/Image/Image.php, line 218

Class

Image
Defines an image object to represent an image file.

Namespace

Drupal\Core\Image

Code

protected function chmod($uri, $mode = NULL) {
  return drupal_chmod($uri, $mode);
}
doc_Drupal
2016-10-29 09:19:06
Comments
Leave a Comment

Please login to continue.