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