You are here

protected function InstallHelper::storeCreatedContentUuids in Drupal 8

Same name and namespace in other branches
  1. 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.

4 calls to InstallHelper::storeCreatedContentUuids()
InstallHelper::createFileEntity in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Creates a file entity based on an image path.
InstallHelper::getUser in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Looks up a user by name, if it is missing the user is created.
InstallHelper::importContentFromFile in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Imports content.
InstallHelper::importEditors in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Imports editors.

File

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

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);
}