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