public static function SmartIpAdminSettingsForm::manualUpdate in Smart IP 8.3
Same name and namespace in other branches
- 8.4 src/Form/SmartIpAdminSettingsForm.php \Drupal\smart_ip\Form\SmartIpAdminSettingsForm::manualUpdate()
- 8.2 src/Form/SmartIpAdminSettingsForm.php \Drupal\smart_ip\Form\SmartIpAdminSettingsForm::manualUpdate()
Triggers manual database update event to Smart IP data source module listeners.
File
- src/
Form/ SmartIpAdminSettingsForm.php, line 354 - Contains \Drupal\smart_ip\Form\SmartIpAdminSettingsForm.
Class
- SmartIpAdminSettingsForm
- Smart IP main admin settings page.
Namespace
Drupal\smart_ip\FormCode
public static function manualUpdate() {
/** @var \Drupal\smart_ip\DatabaseFileEvent $event */
$event = \Drupal::service('smart_ip.database_file_event');
// Allow Smart IP source module to act on manual database update.
\Drupal::service('event_dispatcher')
->dispatch(SmartIpEvents::MANUAL_UPDATE, $event);
}