You are here

protected function Image::chmod in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image::chmod()

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()

1 call to Image::chmod()
Image::save in core/lib/Drupal/Core/Image/Image.php
Closes the image and saves the changes to a file.

File

core/lib/Drupal/Core/Image/Image.php, line 223
Contains \Drupal\Core\Image\Image.

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);
}