You are here

protected function Importer::preDenormalize in Default Content Deploy 8

This event is triggered before decoding to an entity.

Parameters

$file:

Return value

$this

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to Importer::preDenormalize()
Importer::import in src/Importer.php
Import to entity.

File

src/Importer.php, line 493

Class

Importer
A service for handling import of default content.

Namespace

Drupal\default_content_deploy

Code

protected function preDenormalize(&$file, $entity_type) {
  $this
    ->updateTargetRevisionId($file['data']);
  if ($entity_type === 'path_alias') {
    $this
      ->updatePathAliasTargetId($file['data']);
  }
  return $this;
}