<?php
 namespace App\Form\Input; class Autocomplete_ClientActivityCategory extends Autocomplete_GeneralAbstract { protected $class = "autocomplete"; public function getUrl() { return ($this->url?:\Engine\Mvc\Dispatcher::getInstance()->getAppUrl('Modules/RemoteData/AutocompleteFieldData', '', ['class'=>'ClientActivityCategory'])); } public function determineDisplayValue($displayId) :string { return (string)\Entity\ActivityDomainCategory::select($displayId)->name; } } 