<?php
namespace App\Form\Input; class Cloned_AutocompleteStation extends \Engine\Form\Input\Cloned_Autocomplete { protected $class = "clonedAutocomplete"; public function __construct($label=null, $name=null, $value=null) { parent::__construct($label, $name, $value); $this->url = \Engine\Mvc\Dispatcher::getInstance()->getAppUrl('Modules/RemoteData/AutocompleteFieldData', '', ['class'=>'Station']); } public function determineDisplayValue($displayId) :string { return (string)\Entity\Station::select($displayId)->name; } }