protected function DashboardBlockFormBase::init in Draggable dashboard 8.2
Initialize the form state and the entity before the first form build.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: Form state object.
\Drupal\draggable_dashboard\Entity\DashboardEntityInterface $dashboard_entity: Dashboard object.
2 calls to DashboardBlockFormBase::init()
- DashboardAssignBlockForm::init in src/
Form/ DashboardAssignBlockForm.php - Initialize the form state and the entity before the first form build.
- DashboardConfigureBlockForm::init in src/
Form/ DashboardConfigureBlockForm.php - Initialize the form state and the entity before the first form build.
2 methods override DashboardBlockFormBase::init()
- DashboardAssignBlockForm::init in src/
Form/ DashboardAssignBlockForm.php - Initialize the form state and the entity before the first form build.
- DashboardConfigureBlockForm::init in src/
Form/ DashboardConfigureBlockForm.php - Initialize the form state and the entity before the first form build.
File
- src/
Form/ DashboardBlockFormBase.php, line 75
Class
- DashboardBlockFormBase
- Class DashboardBlockFormBase
Namespace
Drupal\draggable_dashboard\FormCode
protected function init(FormStateInterface $form_state, DashboardEntityInterface $dashboard_entity) {
// Flag that this form has been initialized.
$form_state
->set('form_initialized', TRUE);
$this->dashboard = $dashboard_entity;
}