public static function ContentFileStorageFactory::getSync in Content Synchronization 8
Same name and namespace in other branches
- 8.2 src/Content/ContentFileStorageFactory.php \Drupal\content_sync\Content\ContentFileStorageFactory::getSync()
- 3.0.x src/Content/ContentFileStorageFactory.php \Drupal\content_sync\Content\ContentFileStorageFactory::getSync()
Returns a FileStorage object working with the sync content directory.
Return value
\Drupal\Core\Config\FileStorage FileStorage
1 string reference to 'ContentFileStorageFactory::getSync'
File
- src/
Content/ ContentFileStorageFactory.php, line 29
Class
- ContentFileStorageFactory
- Provides a factory for creating content file storage objects.
Namespace
Drupal\content_sync\ContentCode
public static function getSync() {
// Load the class from a different namespace.
$class = "Drupal\\Core\\Config\\FileStorage";
return new $class(content_sync_get_content_directory(CONFIG_SYNC_DIRECTORY));
}