You are here

public function AcquiaLiftTarget::getAssets in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 plugins/agent_types/AcquiaLiftTarget.inc \AcquiaLiftTarget::getAssets()

Implements PersonalizeAgentInterface::getAssets().

File

plugins/agent_types/AcquiaLiftTarget.inc, line 35
Provides an agent for doing fixed targeting.

Class

AcquiaLiftTarget
@file Provides an agent for doing fixed targeting.

Code

public function getAssets() {
  $settings = acquia_lift_target_default_js_settings($this->machineName);
  $settings_array = array(
    'type' => 'setting',
    'data' => array(
      'acquia_lift_target' => $settings,
    ),
  );
  $assets = array(
    'js' => array(
      drupal_get_path('module', 'acquia_lift') . '/js/acquia_lift.js' => array(
        'type' => 'file',
        'scope' => 'footer',
        'defer' => TRUE,
      ),
      $settings_array,
    ),
  );
  return $assets;
}