diff --git a/core/lib/Drupal/Core/Config/ConfigImporter.php b/core/lib/Drupal/Core/Config/ConfigImporter.php index 6f4b65e..861473b 100644 --- a/core/lib/Drupal/Core/Config/ConfigImporter.php +++ b/core/lib/Drupal/Core/Config/ConfigImporter.php @@ -22,20 +22,19 @@ * * Each instance of ConfigImporter has a service name which is used to construct * event names. The events fired during an import are: - * - '{service name}.validate': Events listening can throw a - * \Drupal\Core\Config\ConfigImporterException to prevent an import from - * occurring. - * @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber - * - '{service name}.import': Events listening can react to a successful - * import. - * @see \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber + * - '{service name}.validate': Events listening can throw a + * \Drupal\Core\Config\ConfigImporterException to prevent an import from + * occurring. + * @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber + * - '{service name}.import': Events listening can react to a successful import. + * @see \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber * * @see \Drupal\Core\Config\ConfigImporterEvent */ class ConfigImporter { /** - * The name of the ConfigImporter. Used to identify events. + * The name of the ConfigImporter used to identify events. * * @var string */ @@ -79,7 +78,7 @@ class ConfigImporter { /** * The used lock backend instance. * - * @var \Drupal\Core\Lock\LockBackendInterface $lock + * @var \Drupal\Core\Lock\LockBackendInterface */ protected $lock; @@ -101,11 +100,11 @@ class ConfigImporter { * Constructs a configuration import object. * * @param string $service_name - * The name of the config importer service. Used by notify to dispatch + * The name of the config importer service used by notify to dispatch * service specific events. * @param \Drupal\Core\Config\StorageComparerInterface $storage_comparer - * A storage comparer object to used determining configuration changes and - * accessing the source and target storage objects. + * A storage comparer object used to determin configuration changes and + * access the source and target storage objects. * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher * The event dispatcher used to notify subscribers of config import events. * @param \Drupal\Core\Config\ConfigFactory $config_factory @@ -143,7 +142,7 @@ public function getStorageComparer() { * Resets the storage comparer and processed list. * * @return \Drupal\Core\Config\ConfigImporter - * The ConfigImporter instance. + * The ConfigImporter instance. */ public function reset() { $this->storageComparer->reset(); @@ -185,7 +184,7 @@ public function getProcessed() { * Sets a change as processed. * * @param string $op - * The change operation performed. Either create, change or delete. + * The change operation performed, either delete, create or update. * @param string $name * The name of the configuration processed. */ @@ -196,9 +195,9 @@ protected function setProcessed($op, $name) { /** * Gets a list of unprocessed changes for a given operation. * - * @param $op - * The change operation to get the unprocessed list for. Either create, - * update or delete. + * @param string $op + * The change operation to get the unprocessed list for, either delete, + * create or update. * * @return array * An array of configuration names.