tome-8.x-1.x-dev/modules/tome_sync/src/YamlFileStorageFactory.php

modules/tome_sync/src/YamlFileStorageFactory.php
<?php

namespace Drupal\tome_sync;

use Drupal\Core\Site\Settings;

/**
 * Provides a factory for creating yaml file storage objects.
 *
 * @internal
 */
class YamlFileStorageFactory {

  /**
   * Returns a YamlFileStorage object.
   *
   * @return \Drupal\tome_sync\YamlFileStorage
   *   The Yaml file storage.
   */
  public static function getContent() {
    return new YamlFileStorage(Settings::get('tome_content_directory', '../content'));
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc