function InstallHelper::storeCreatedContentUuids

Same name in other branches
  1. 8.9.x core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::storeCreatedContentUuids()
  2. 10 core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::storeCreatedContentUuids()
  3. 11.x 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 868

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.