You are here

public function CdnSettings::getStreamWrappers in CDN 8.3

Returns CDN-eligible stream wrappers.

Return value

string[] The allowed stream wrapper scheme names.

File

src/CdnSettings.php, line 99

Class

CdnSettings
Wraps the CDN settings configuration, contains all parsing.

Namespace

Drupal\cdn

Code

public function getStreamWrappers() : array {
  $stream_wrappers = $this->rawSettings
    ->get('stream_wrappers');

  // @see cdn_update_8002()
  assert(Inspector::assertAllStrings($stream_wrappers), 'Please run update.php!');
  return $stream_wrappers;
}