/** * {@inheritdocs} */ public function initializeContext(Context $context) { // All contexts are passed here, only DrupalAwareInterface is allowed. if (!$context instanceof EloquaAwareInterface) { return; } // Set ELoqua client. $context->setClient($this->client); // Set event dispatcher. $context->setDispatcher($this->dispatcher); // Add all parameters to the context. $context->setEloquaParameters($this->parameters); }