You are here

public function EnrolmentUserRegistration::getValue in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  2. 8.5 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  3. 8.6 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  4. 8.7 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  5. 10.3.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  6. 10.0.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  7. 10.1.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()
  8. 10.2.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserRegistration::getValue()

Returns the value.

Parameters

\Drupal\user\UserInterface $entity: The User entity to get the value from.

Return value

string The value.

Overrides UserRegistration::getValue

File

modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php, line 22

Class

EnrolmentUserRegistration
Provides a 'EnrolmentUserRegistration' user export row.

Namespace

Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin

Code

public function getValue(UserInterface $entity) {
  if ($entity
    ->isAnonymous()) {
    $entity =& $this->configuration['entity'];
  }
  return $this
    ->format($entity);
}