public function CommerceFileLicenseEntity::deny in Commerce File 7
DENY - sets state to 'denied' with the default status
File
- includes/
commerce_file_license.entity.inc, line 216 - Provides a base class for CommerceFileLicenseEntity.
Class
- CommerceFileLicenseEntity
- A Commerce File License entity class.
Code
public function deny() {
if ($this
->is_allowed()) {
$this
->set_state('denied');
}
return $this;
}