function Editor::getValidStreamWrappers
Same name in other branches
- 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
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\EntityCode
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.