public function EnrolmentUserDisplayName::getValue in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 8.5 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 8.6 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 8.7 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 10.3.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 10.0.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
- 10.1.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserDisplayName.php \Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin\EnrolmentUserDisplayName::getValue()
Returns the value.
Parameters
\Drupal\user\UserInterface $entity: The User entity to get the value from.
Return value
string The value.
Overrides UserDisplayName::getValue
File
- modules/
social_features/ social_event/ modules/ social_event_an_enroll_enrolments_export/ src/ Plugin/ UserExportPlugin/ EnrolmentUserDisplayName.php, line 81
Class
- EnrolmentUserDisplayName
- Provides a 'EnrolmentUserDisplayName' user export row.
Namespace
Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPluginCode
public function getValue(UserInterface $entity) {
if ($entity
->isAnonymous()) {
$value = $this->socialEventAnEnrollManager
->getGuestName($this->configuration['entity'], FALSE);
return $value ?: $this
->t('Guest');
}
return parent::getValue($entity);
}