You are here

public static function JsonFileStorageFactory::getContent in Tome 8

Returns a JsonFileStorage object.

Return value

\Drupal\tome_sync\JsonFileStorage The JSON file storage.

1 string reference to 'JsonFileStorageFactory::getContent'
tome_sync.services.yml in modules/tome_sync/tome_sync.services.yml
modules/tome_sync/tome_sync.services.yml

File

modules/tome_sync/src/JsonFileStorageFactory.php, line 20

Class

JsonFileStorageFactory
Provides a factory for creating json file storage objects.

Namespace

Drupal\tome_sync

Code

public static function getContent() {
  return new JsonFileStorage(Settings::get('tome_content_directory', '../content'));
}