public static function AcquiaLiftContext::allowedFromAgent in Acquia Lift Connector 7
Implements PersonalizeContextInterface::allowedFromAgent().
File
- plugins/
visitor_context/ AcquiaLiftContext.inc, line 84 - Provides an agent type for Acquia Lift
Class
- AcquiaLiftContext
- @file Provides an agent type for Acquia Lift
Code
public static function allowedFromAgent(StdClass $agent) {
return !empty($agent->plugin) && preg_match('/^acquia_lift/', $agent->plugin);
}