You are here

protected function ImageStyle::fileDefaultScheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Entity/ImageStyle.php \Drupal\image\Entity\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.

1 call to ImageStyle::fileDefaultScheme()
ImageStyle::buildUri in core/modules/image/src/Entity/ImageStyle.php
Returns the URI of this image when using this style.

File

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

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

protected function fileDefaultScheme() {
  return file_default_scheme();
}