comparison core/lib/Drupal/Core/Config/ConfigInstaller.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
324 if ($this->isSyncing()) { 324 if ($this->isSyncing()) {
325 continue; 325 continue;
326 } 326 }
327 /** @var \Drupal\Core\Config\Entity\ConfigEntityStorageInterface $entity_storage */ 327 /** @var \Drupal\Core\Config\Entity\ConfigEntityStorageInterface $entity_storage */
328 $entity_storage = $this->configManager 328 $entity_storage = $this->configManager
329 ->getEntityManager() 329 ->getEntityTypeManager()
330 ->getStorage($entity_type); 330 ->getStorage($entity_type);
331 331
332 $id = $entity_storage->getIDFromConfigName($name, $entity_storage->getEntityType()->getConfigPrefix()); 332 $id = $entity_storage->getIDFromConfigName($name, $entity_storage->getEntityType()->getConfigPrefix());
333 // It is possible that secondary writes can occur during configuration 333 // It is possible that secondary writes can occur during configuration
334 // creation. Updates of such configuration are allowed. 334 // creation. Updates of such configuration are allowed.
377 $this->sourceStorage = $storage; 377 $this->sourceStorage = $storage;
378 return $this; 378 return $this;
379 } 379 }
380 380
381 /** 381 /**
382 * Gets the configuration storage that provides the default configuration. 382 * {@inheritdoc}
383 *
384 * @return \Drupal\Core\Config\StorageInterface|null
385 * The configuration storage that provides the default configuration.
386 * Returns null if the source storage has not been set.
387 */ 383 */
388 public function getSourceStorage() { 384 public function getSourceStorage() {
389 return $this->sourceStorage; 385 return $this->sourceStorage;
390 } 386 }
391 387