You are here

UserUuid.php in Open Social 8.7

File

modules/social_features/social_user_export/src/Plugin/UserExportPlugin/UserUuid.php
View source
<?php

namespace Drupal\social_user_export\Plugin\UserExportPlugin;

use Drupal\social_user_export\Plugin\UserExportPluginBase;
use Drupal\user\UserInterface;

/**
 * Provides a 'UserUuid' user export row.
 *
 * @UserExportPlugin(
 *  id = "uuid",
 *  label = @Translation("UUID"),
 *  weight = -490,
 * )
 */
class UserUuid extends UserExportPluginBase {

  /**
   * {@inheritdoc}
   */
  public function getHeader() {
    return $this
      ->t('UUID');
  }

  /**
   * {@inheritdoc}
   */
  public function getValue(UserInterface $entity) {
    return $entity
      ->uuid();
  }

}

Classes

Namesort descending Description
UserUuid Provides a 'UserUuid' user export row.