code: public function update(IEventContainer $eventContainer, array $values)
      {
          if (isset($values['id_user'])) {
              $hash = $this->identityModel->getEncodeHash($values['id_user'], $values['login'], $this->validate);
  
              $component = $eventContainer->getComponent();
              $eventContainer->addValues(['approve_link' => $component->presenter->link($this->destination, $hash)]);
          }
      }
docs: Update.
  
  @param IEventContainer $eventContainer
  @param array           $values