public function buildTemplate() { $options = []; $options['clearSelect'] = true; $options['select'][] = \Rebond\Cms\Template\Data::getList(['id', 'title']); $models = \Rebond\Cms\Template\Data::loadAll($options); return Util\Form::buildDropdownList('templateId' . $this->unique, $models, 'id', 'title', $this->getModel()->getTemplateId(), $this->templateValidator['foreignKey']); }