You are here

public static function AcquiaLiftTarget::create in Acquia Lift Connector 7.2

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

Implements PersonalizeAgentInterface::create().

File

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

Class

AcquiaLiftTarget
@file Provides an agent for doing fixed targeting.

Code

public static function create($agent_data) {
  $status = personalize_agent_get_status($agent_data->machine_name);
  return new self($agent_data->machine_name, $agent_data->label, $agent_data->data, $status, !empty($agent_data->started) ? $agent_data->started : NULL);
}