You are here

protected function SyncFilter::syncSourceStorageRead in Configuration Synchronizer 8.2

Reads from the sync source configuration.

Parameters

string $name: The name of the configuration to read.

mixed $data: The data to be filtered.

Return value

mixed The data filtered or read from the sync source storage.

2 calls to SyncFilter::syncSourceStorageRead()
SyncFilter::filterRead in src/Plugin/ConfigFilter/SyncFilter.php
SyncFilter::syncSourceStorageReadMultiple in src/Plugin/ConfigFilter/SyncFilter.php
Reads multiple from the sync source storage.

File

src/Plugin/ConfigFilter/SyncFilter.php, line 215

Class

SyncFilter
Provides a sync filter that brings in updates from installed extensions.

Namespace

Drupal\config_sync\Plugin\ConfigFilter

Code

protected function syncSourceStorageRead($name, $data) {
  if ($sync = $this->syncSourceStorage
    ->read($name)) {
    return $sync;
  }
  return $data;
}