public function ObjectLogClearLogForm::buildForm in Object Log 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- src/
Form/ ObjectLogClearLogForm.php, line 53 - Contains ObjectLogClearLogForm.
Class
- ObjectLogClearLogForm
- Provides the form that clears the Object Log table.
Namespace
Drupal\object_log\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['clear'] = array(
'#type' => 'submit',
'#value' => $this
->t('Clear log'),
);
return $form;
}