public function buildLayout() { $options = []; $options['clearSelect'] = true; $options['select'][] = \Rebond\Cms\Layout\Data::getList(['id', 'title']); $models = \Rebond\Cms\Layout\Data::loadAll($options); return Util\Form::buildDropdownList('layoutId' . $this->unique, $models, 'id', 'title', $this->getModel()->getLayoutId(), $this->layoutValidator['foreignKey']); }