public function ContentSync::__construct in Content Synchronization 3.0.x
Same name and namespace in other branches
- 8.2 src/Form/ContentSync.php \Drupal\content_sync\Form\ContentSync::__construct()
- 8 src/Form/ContentSync.php \Drupal\content_sync\Form\ContentSync::__construct()
Constructs the object.
Parameters
\Drupal\Core\Config\StorageInterface $sync_storage: The source storage.
\Drupal\Core\Config\StorageInterface $active_storage: The target storage.
\Drupal\Core\Config\ConfigManagerInterface $config_manager: Configuration manager.
\Drupal\content_sync\ContentSyncManagerInterface $content_sync_manager: The content sync manager.
File
- src/
Form/ ContentSync.php, line 60
Class
- ContentSync
- Construct the storage changes in a content synchronization form.
Namespace
Drupal\content_sync\FormCode
public function __construct(StorageInterface $sync_storage, StorageInterface $active_storage, ConfigManagerInterface $config_manager, ContentSyncManagerInterface $content_sync_manager) {
$this->syncStorage = $sync_storage;
$this->activeStorage = $active_storage;
$this->configManager = $config_manager;
$this->contentSyncManager = $content_sync_manager;
}