public ConfigManagerInterface::diff(StorageInterface $source_storage, StorageInterface $target_storage, $source_name, $target_name = NULL, $collection = StorageInterface::DEFAULT_COLLECTION)
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
File
- core/lib/Drupal/Core/Config/ConfigManagerInterface.php, line 71
Class
- ConfigManagerInterface
- Provides an interface for configuration manager.
Namespace
Drupal\Core\Config
Code
public function diff(StorageInterface $source_storage, StorageInterface $target_storage, $source_name, $target_name = NULL, $collection = StorageInterface::DEFAULT_COLLECTION);
Please login to continue.