protected function DashboardAddForm::buildDashboard in Draggable dashboard 8
Builds the path used by the form.
Parameters
int|null $did: Either the unique path ID, or NULL if a new one is being created.
Overrides DashboardFormBase::buildDashboard
File
- src/
Form/ DashboardAddForm.php, line 22
Class
- DashboardAddForm
- Provides the path add form.
Namespace
Drupal\draggable_dashboard\FormCode
protected function buildDashboard($did) {
return DashboardEntity::create([
'title' => '',
'description' => '',
'columns' => 2,
'blocks' => '',
]);
}