You are here

function commerce_license_theme in Commerce License 8.2

Same name and namespace in other branches
  1. 7 commerce_license.module \commerce_license_theme()

Implements hook_theme().

File

./commerce_license.module, line 151
Contains commerce_license.module.

Code

function commerce_license_theme() {
  return [
    'commerce_license' => [
      'render element' => 'elements',
      'file' => 'commerce_license.page.inc',
      'template' => 'commerce_license',
    ],
    'commerce_license_expire' => [
      'variables' => [
        'license_entity' => NULL,
        'purchased_entity' => NULL,
        // Needs to be its own parameter, as toUrl() is not whitelisted for
        // Twig.
        // TODO: remove when http://www.drupal.org/project/drupal/issues/2907810
        // is fixed.
        'purchased_entity_url' => '',
      ],
    ],
  ];
}