protected function UserEntityNormalizer::getContentSyncMetadata in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x src/Normalizer/UserEntityNormalizer.php \Drupal\content_sync\Normalizer\UserEntityNormalizer::getContentSyncMetadata()
Parameters
$object:
array $context:
Return value
array
Overrides ContentEntityNormalizer::getContentSyncMetadata
File
- src/
Normalizer/ UserEntityNormalizer.php, line 62
Class
- UserEntityNormalizer
- User entity normalizer class.
Namespace
Drupal\content_sync\NormalizerCode
protected function getContentSyncMetadata($object, $context = []) {
/** @var \Drupal\user\Entity\User $object */
$metadata = parent::getContentSyncMetadata($object, $context);
if ($object
->isAnonymous()) {
$metadata['is_anonymous'] = TRUE;
}
return $metadata;
}