You are here

function commerce_file_license_property_getter in Commerce File 7

Callback for getting properties.

See also

commerce_file_entity_property_info()

1 string reference to 'commerce_file_license_property_getter'
commerce_file_entity_property_info_alter in ./commerce_file.info.inc
Implements hook_entity_property_info_alter()

File

includes/commerce_file.entities.inc, line 339
Handles file licenses and file license logs

Code

function commerce_file_license_property_getter($entity, array $options, $name) {
  try {
    return $entity->{$name};
  } catch (Exception $e) {
    return NULL;
  }
}