EnrolmentUserRegistration.php in Open Social 8.9
Same filename and directory in other branches
- 8.5 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 8.6 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 8.7 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 10.3.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 10.0.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 10.1.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
- 10.2.x modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.php
File
modules/social_features/social_event/modules/social_event_an_enroll_enrolments_export/src/Plugin/UserExportPlugin/EnrolmentUserRegistration.phpView source
<?php
namespace Drupal\social_event_an_enroll_enrolments_export\Plugin\UserExportPlugin;
use Drupal\social_user_export\Plugin\UserExportPlugin\UserRegistration;
use Drupal\user\UserInterface;
/**
* Provides a 'EnrolmentUserRegistration' user export row.
*
* @UserExportPlugin(
* id = "enrolment_user_registration",
* label = @Translation("Registration date"),
* weight = -410,
* )
*/
class EnrolmentUserRegistration extends UserRegistration {
/**
* {@inheritdoc}
*/
public function getValue(UserInterface $entity) {
if ($entity
->isAnonymous()) {
$entity =& $this->configuration['entity'];
}
return $this
->format($entity);
}
}
Classes
Name | Description |
---|---|
EnrolmentUserRegistration | Provides a 'EnrolmentUserRegistration' user export row. |