You are here

public function CommerceFileLicenseEntity::allow in Commerce File 7

ALLOW - sets state to 'allowed' with the default status

File

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

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

public function allow() {
  if (!$this
    ->is_allowed()) {
    $this
      ->set_state('allowed');
  }
  return $this;
}