class JsonFileStorageFactory in Tome 8
Provides a factory for creating json file storage objects.
@internal
Hierarchy
- class \Drupal\tome_sync\JsonFileStorageFactory
Expanded class hierarchy of JsonFileStorageFactory
File
- modules/
tome_sync/ src/ JsonFileStorageFactory.php, line 12
Namespace
Drupal\tome_syncView source
class JsonFileStorageFactory {
/**
* Returns a JsonFileStorage object.
*
* @return \Drupal\tome_sync\JsonFileStorage
* The JSON file storage.
*/
public static function getContent() {
return new JsonFileStorage(Settings::get('tome_content_directory', '../content'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JsonFileStorageFactory:: |
public static | function | Returns a JsonFileStorage object. |