public function CommerceLicenseFile::accessDetails in Commerce File 7.2
Implements CommerceLicenseInterface::accessDetails().
Overrides CommerceLicenseBase::accessDetails
1 call to CommerceLicenseFile::accessDetails()
- CommerceLicenseFile::checkoutCompletionMessage in plugins/
license_type/ CommerceLicenseFile.class.php  - Implements CommerceLicenseInterface::checkoutCompletionMessage().
 
File
- plugins/
license_type/ CommerceLicenseFile.class.php, line 18  
Class
- CommerceLicenseFile
 - File license type.
 
Code
public function accessDetails() {
  // Display the files.
  $product = $this->wrapper->product
    ->value();
  $display = array(
    'label' => 'hidden',
    'type' => 'commerce_file',
    'settings' => array(
      // The access check confirms that the product has a license.
      // Since we're calling this formatter from a license, there is no
      // point in performing that check.
      'check_access' => FALSE,
    ),
  );
  $output = field_view_field('commerce_product', $product, 'commerce_file', $display);
  return drupal_render($output);
}