protected function ContentEntityNormalizer::getContentSyncMetadata in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x 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 - Normalizes an object into a set of arrays/scalars.
- 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 226
Class
- ContentEntityNormalizer
- Adds the file URI to embedded file entities.
Namespace
Drupal\content_sync\NormalizerCode
protected function getContentSyncMetadata($object, $context = []) {
$metadata = [
'entity_type' => $object
->getEntityTypeId(),
];
return $metadata;
}