ImageStyle::fileDefaultScheme

protected ImageStyle::fileDefaultScheme()

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

Gets the default file stream implementation.

@todo: Convert file_default_scheme() into a proper injectable service.

Return value

string 'public', 'private' or any other file scheme defined as the default.

File

core/modules/image/src/Entity/ImageStyle.php, line 507

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

protected function fileDefaultScheme() {
  return file_default_scheme();
}
doc_Drupal
2016-10-29 09:19:30
Comments
Leave a Comment

Please login to continue.