public function DashboardConfigureBlockForm::buildForm in Draggable dashboard 8.2
Parameters
array $form:
\Drupal\Core\Form\FormStateInterface $form_state:
Return value
array
Throws
\Drupal\Component\Plugin\Exception\PluginException
Overrides DashboardBlockFormBase::buildForm
File
- src/
Form/ DashboardConfigureBlockForm.php, line 53
Class
- DashboardConfigureBlockForm
- Class DashboardConfigureBlockForm
Namespace
Drupal\draggable_dashboard\FormCode
public function buildForm(array $form, FormStateInterface $form_state, DashboardEntityInterface $dashboard_entity = NULL, $block_id = '') {
// During the initial form build, add this form object to the form state and
// allow for initial preparation before form building and processing.
if (!$form_state
->has('form_initialized')) {
$this
->init($form_state, $dashboard_entity, $block_id);
}
return parent::buildForm($form, $form_state);
}