function PaymentMethodEntityController::export in Payment 7
Overridden.
Overrides EntityAPIControllerExportable::export
File
- ./
payment.classes.inc, line 707 - The API and related functions for executing and managing payments.
Class
- PaymentMethodEntityController
- Entity API controller for payment_method entities.
Code
function export($entity, $prefix = '') {
// The payment method controller should not be exported. Instead, we
// temporarily replace it with a property that only stores its class name.
$controller = $entity->controller;
$entity->controller_class_name = $controller->name;
unset($entity->controller);
$export = parent::export($entity, $prefix);
$entity->controller = $controller;
unset($entity->controller_class_name);
return $export;
}