You are here

protected function ContentEntityNormalizer::getContentSyncMetadata in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Normalizer/ContentEntityNormalizer.php \Drupal\content_sync\Normalizer\ContentEntityNormalizer::getContentSyncMetadata()

Parameters

$object:

array $context:

Return value

array

2 calls to ContentEntityNormalizer::getContentSyncMetadata()
ContentEntityNormalizer::normalize in src/Normalizer/ContentEntityNormalizer.php
UserEntityNormalizer::getContentSyncMetadata in src/Normalizer/UserEntityNormalizer.php
1 method overrides ContentEntityNormalizer::getContentSyncMetadata()
UserEntityNormalizer::getContentSyncMetadata in src/Normalizer/UserEntityNormalizer.php

File

src/Normalizer/ContentEntityNormalizer.php, line 260

Class

ContentEntityNormalizer
Adds the file URI to embedded file entities.

Namespace

Drupal\content_sync\Normalizer

Code

protected function getContentSyncMetadata($object, $context = []) {
  $metadata = [
    'entity_type' => $object
      ->getEntityTypeId(),
  ];
  return $metadata;
}