You are here

function commerce_file_handler_field_license_expiration::_get_entity in Commerce File 7

1 call to commerce_file_handler_field_license_expiration::_get_entity()
commerce_file_handler_field_license_expiration::render in views/handlers/commerce_file_handler_field_license_expiration.inc
Render the field.

File

views/handlers/commerce_file_handler_field_license_expiration.inc, line 55
Field handler for a license expiration.

Class

commerce_file_handler_field_license_expiration
Field handler for license expiration.

Code

function _get_entity($values) {
  $entity_id = $this
    ->get_value($values, 'license_id');
  if (!empty($entity_id)) {
    return commerce_file_license_load($entity_id);
  }
}