public function ConfigManagerInterface::diff in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Config/ConfigManagerInterface.php \Drupal\Core\Config\ConfigManagerInterface::diff()
Creates a Diff object using the config data from the two storages.
@todo Make renderer injectable
Parameters
\Drupal\Core\Config\StorageInterface $source_storage: The storage to diff configuration from.
\Drupal\Core\Config\StorageInterface $target_storage: The storage to diff configuration to.
string $source_name: The name of the configuration object in the source storage to diff.
string $target_name: (optional) The name of the configuration object in the target storage. If omitted, the source name is used.
string $collection: (optional) The configuration collection name. Defaults to the default collection.
Return value
\Drupal\Component\Diff\Diff A Diff object using the config data from the two storages.
See also
\Drupal\Core\Diff\DiffFormatter
1 method overrides ConfigManagerInterface::diff()
- ConfigManager::diff in core/
lib/ Drupal/ Core/ Config/ ConfigManager.php - Creates a Diff object using the config data from the two storages.
File
- core/
lib/ Drupal/ Core/ Config/ ConfigManagerInterface.php, line 83
Class
- ConfigManagerInterface
- Provides an interface for configuration manager.
Namespace
Drupal\Core\ConfigCode
public function diff(StorageInterface $source_storage, StorageInterface $target_storage, $source_name, $target_name = NULL, $collection = StorageInterface::DEFAULT_COLLECTION);