class RegistrationTypeController in Entity Registration 8.2
Same name in this branch
- 8.2 lib/registration_type.controller.inc \RegistrationTypeController
- 8.2 src/RegistrationTypeController.php \Drupal\registration\RegistrationTypeController
@file The controller class used for registration type entities
Hierarchy
- class \Drupal\registration\RegistrationTypeController extends \Drupal\registration\EntityAPIControllerExportable
Expanded class hierarchy of RegistrationTypeController
2 string references to 'RegistrationTypeController'
- registration_entity_info in ./
registration.module - Implements hook_entity_info().
- registration_entity_info_alter in ./
registration.module - Implements hook_entity_info_alter().
File
- src/
RegistrationTypeController.php, line 8 - The controller class used for registration type entities
Namespace
Drupal\registrationView source
class RegistrationTypeController extends EntityAPIControllerExportable {
/**
* Overridden.
*/
public function export($entity, $prefix = '') {
// Ensure our data properties are properly structured.
$data_properties = array(
'held_expire',
'held_expire_state',
);
foreach ($data_properties as $data_property) {
if (isset($entity->{$data_property})) {
$entity->data[$data_property] = $entity->{$data_property};
unset($entity->{$data_property});
}
}
return parent::export($entity, $prefix);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RegistrationTypeController:: |
public | function | Overridden. |