protected function CommerceFileLicenseLogEntity::defaultLabel in Commerce File 7
Specifies the default label, which is picked up by label() by default.
Overrides Entity::defaultLabel
File
- includes/
commerce_file_license_log.entity.inc, line 46 - Provides a base class for CommreceFileLicenseLogEntity.
Class
- CommerceFileLicenseLogEntity
- A Commerce File License Log entity class.
Code
protected function defaultLabel() {
if (!empty($this->entityInfo['entity keys']['label']) && isset($this->{$this->entityInfo['entity keys']['label']})) {
return $this->{$this->entityInfo['entity keys']['label']};
}
return FALSE;
}