You are here

protected function InstallHelper::storeCreatedContentUuids in Drupal 10

Same name and namespace in other branches
  1. 8 core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::storeCreatedContentUuids()
  2. 9 core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::storeCreatedContentUuids()

Stores record of content entities created by this import.

Parameters

array $uuids: Array of UUIDs where the key is the UUID and the value is the entity type.

File

core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php, line 863

Class

InstallHelper
Defines a helper class for importing default content.

Namespace

Drupal\demo_umami_content

Code

protected function storeCreatedContentUuids(array $uuids) {
  $uuids = $this->state
    ->get('demo_umami_content_uuids', []) + $uuids;
  $this->state
    ->set('demo_umami_content_uuids', $uuids);
}