public function buildFolder() { $options = []; $options['clearSelect'] = true; $options['select'][] = \Rebond\Core\Folder\Data::getList(['id', 'title']); $models = \Rebond\Core\Folder\Data::loadAll($options); return Util\Form::buildDropdownList('folderId' . $this->unique, $models, 'id', 'title', $this->getModel()->getFolderId(), $this->folderValidator['foreignKey']); }