protected function DashboardAssignBlockForm::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.
string $plugin_id: Plugin id of the block used.
Overrides DashboardBlockFormBase::init
1 call to DashboardAssignBlockForm::init()
- DashboardAssignBlockForm::buildForm in src/
Form/ DashboardAssignBlockForm.php - Builds assign block form.
File
- src/
Form/ DashboardAssignBlockForm.php, line 32
Class
- DashboardAssignBlockForm
- Class DashboardAssignBlockForm
Namespace
Drupal\draggable_dashboard\FormCode
protected function init(FormStateInterface $form_state, DashboardEntityInterface $dashboard_entity, $plugin_id = '') {
parent::init($form_state, $dashboard_entity);
$this->block = [
'settings' => [
'id' => $plugin_id,
],
];
}