You are here

protected function InstallHelper::saveMediaImageId 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::saveMediaImageId()

Saves a Media Image ID generated when saving a media image.

Parameters

int $media_image_csv_id: The media image's ID from the CSV file.

int $media_image_id: Media Image ID generated when saved in the Drupal database.

1 call to InstallHelper::saveMediaImageId()
InstallHelper::importContentFromFile in core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php
Imports content.

File

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

Class

InstallHelper
Defines a helper class for importing default content.

Namespace

Drupal\demo_umami_content

Code

protected function saveMediaImageId($media_image_csv_id, $media_image_id) {
  $this->mediaImageIdMap[$media_image_csv_id] = $media_image_id;
}