
| Current Path : /var/www/html_old/abk/web/modules/contrib/content_sync/src/Content/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/abk/web/modules/contrib/content_sync/src/Content/ContentFileStorageFactory.php |
<?php
namespace Drupal\content_sync\Content;
/**
* Provides a factory for creating content file storage objects.
*/
class ContentFileStorageFactory {
/**
* Returns a FileStorage object working with the active content directory.
*
* @return \Drupal\Core\Config\FileStorage FileStorage
*
* @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Drupal core
* no longer creates an active directory.
*/
public static function getActive() {
// Load the class from a different namespace.
$class = "Drupal\\Core\\Config\\FileStorage";
return new $class(content_sync_get_content_directory('active') . "/entities");
}
/**
* Returns a FileStorage object working with the sync content directory.
*
* @return \Drupal\Core\Config\FileStorage FileStorage
*/
public static function getSync() {
// Load the class from a different namespace.
$class = "Drupal\\Core\\Config\\FileStorage";
return new $class(content_sync_get_content_directory('sync') . "/entities");
}
}