/** * Render the form. * * @return string * @api */ public function render() { $personen = array(); if ($this->arguments['contactIds'] !== NULL) { foreach ($this->arguments['contactIds'] as $contactId) { $person = $this->userRepository->findByIdentifier($contactId); if ($person !== NULL) { $personen[] = $person; } } } $this->templateVariableContainer->add($this->arguments['as'], $personen); return $this->renderChildren(); }