You are here

protected function CommerceFileLicenseEntity::_get_field_wrapper in Commerce File 7

Get a read only field wrapper

File

includes/commerce_file_license.entity.inc, line 548
Provides a base class for CommerceFileLicenseEntity.

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

protected function _get_field_wrapper($field_name) {
  $wrapper = $this
    ->get_wrapper();
  if (!empty($wrapper->{$field_name})) {
    return $wrapper->{$field_name};
  }
  return NULL;
}