Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageStyle.php

function ImageStyle::fileDefaultScheme

Provides a wrapper to allow unit testing.

Gets the default file stream implementation.

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 532

Class

ImageStyle
Defines an image style configuration entity.

Namespace

Drupal\image\Entity

Code

protected function fileDefaultScheme() {
    return \Drupal::config('system.file')->get('default_scheme');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal