function Editor::getValidStreamWrappers

Same name and namespace in other branches
  1. 10 core/modules/editor/src/Entity/Editor.php \Drupal\editor\Entity\Editor::getValidStreamWrappers()

Computes all valid choices for the "image_upload.scheme" setting.

@internal

Return value

string[] All valid choices.

See also

editor.schema.yml

1 string reference to 'Editor::getValidStreamWrappers'
editor.schema.yml in core/modules/editor/config/schema/editor.schema.yml
core/modules/editor/config/schema/editor.schema.yml

File

core/modules/editor/src/Entity/Editor.php, line 221

Class

Editor
Defines the configured text editor entity.

Namespace

Drupal\editor\Entity

Code

public static function getValidStreamWrappers() : array {
    return array_keys(\Drupal::service('stream_wrapper_manager')->getNames(StreamWrapperInterface::WRITE_VISIBLE));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.