You are here

class JsonFileStorageFactory in Tome 8

Provides a factory for creating json file storage objects.

@internal

Hierarchy

Expanded class hierarchy of JsonFileStorageFactory

File

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

Namespace

Drupal\tome_sync
View 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

Namesort descending Modifiers Type Description Overrides
JsonFileStorageFactory::getContent public static function Returns a JsonFileStorage object.