public function RecordshortenClearAll::submitForm in Shorten URLs 8
Same name and namespace in other branches
- 8.2 modules/record_shorten/src/Form/RecordshortenClearAll.php \Drupal\record_shorten\Form\RecordshortenClearAll::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- modules/
record_shorten/ src/ Form/ RecordshortenClearAll.php, line 42
Class
- RecordshortenClearAll
- Report form.
Namespace
Drupal\record_shorten\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
db_query("TRUNCATE TABLE {record_shorten}");
drupal_set_message('Shorten Url records cleared.');
}