function InstallHelper::storeCreatedContentUuids
Same name in other branches
- 9 core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::storeCreatedContentUuids()
- 8.9.x core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::storeCreatedContentUuids()
- 10 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::importUsers in core/
profiles/ demo_umami/ modules/ demo_umami_content/ src/ InstallHelper.php - Imports users.
File
-
core/
profiles/ demo_umami/ modules/ demo_umami_content/ src/ InstallHelper.php, line 889
Class
- InstallHelper
- Defines a helper class for importing default content.
Namespace
Drupal\demo_umami_contentCode
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.