You are here

function PaymentViewsHandlerFieldPaymentMethodEnabledMachineName::render in Payment 7

Implements views_handler_field::render().

Overrides views_handler_field::render

File

views/PaymentViewsHandlerFieldPaymentMethodEnabledMachineName.inc, line 16
A views field handler. See payment_views_data().

Class

PaymentViewsHandlerFieldPaymentMethodEnabledMachineName
Views field handler for a payment method's enabled status machine name.

Code

function render($values) {
  return $this
    ->get_value($values) ? 'enabled' : 'disabled';
}