You are here

protected function InstallHelper::saveNodePath 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::saveNodePath()
  2. 10 core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php \Drupal\demo_umami_content\InstallHelper::saveNodePath()

Saves a node CSV ID generated when saving content.

Parameters

string $langcode: Current language code.

string $content_type: Current content type.

string $node_csv_id: The node's ID from the CSV file.

string $node_url: Node's URL alias when saved in the Drupal database.

3 calls to InstallHelper::saveNodePath()
InstallHelper::processArticle in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Process article data into article node structure.
InstallHelper::processPage in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Process pages data into page node structure.
InstallHelper::processRecipe in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Process recipe data into recipe node structure.

File

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

Class

InstallHelper
Defines a helper class for importing default content.

Namespace

Drupal\demo_umami_content

Code

protected function saveNodePath($langcode, $content_type, $node_csv_id, $node_url) {
  $this->nodeIdMap[$langcode][$content_type][$node_csv_id] = $node_url;
}