function InstallHelper::saveMediaImageId

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

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

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