public function FlexiformFormEntityLoad::configurationForm in Flexiform 8
Prepare a configuration form.
Overrides FlexiformFormEntityProvided::configurationForm
File
- src/
Plugin/ FlexiformFormEntity/ FlexiformFormEntityLoad.php, line 33
Class
- FlexiformFormEntityLoad
- Form Entity plugin.
Namespace
Drupal\flexiform\Plugin\FlexiformFormEntityCode
public function configurationForm(array $form, FormStateInterface $form_state) {
$form = parent::configurationForm($form, $form_state);
$form['id'] = [
'#type' => 'textfield',
'#title' => $this
->t('Entity ID'),
'#description' => $this
->t('The ID of the entity.'),
'#default_value' => !empty($this->configuration['id']) ? $this->configuration['id'] : '',
];
return $form;
}