Skip to content
Snippets Groups Projects
Commit 8c7bb81a authored by Wim Leers's avatar Wim Leers
Browse files

The `json-schema-definitions://` stream wrapper serves local, read-only files...

The `json-schema-definitions://` stream wrapper serves local, read-only files that are hidden from end users.
parent 986afffd
Branches research__data_model
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ use Drupal\Core\Extension\Exception\UnknownExtensionException;
use Drupal\Core\Extension\Exception\UnknownExtensionTypeException;
use Drupal\Core\Extension\ExtensionPathResolver;
use Drupal\Core\StreamWrapper\LocalReadOnlyStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Url;
......@@ -22,6 +23,13 @@ class JsonSchemaDefinitionsStreamwrapper extends LocalReadOnlyStream {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public static function getType() {
return StreamWrapperInterface::LOCAL | StreamWrapperInterface::READ | StreamWrapperInterface::HIDDEN;
}
/**
* {@inheritdoc}
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment