instead of drupal_set_message and dpm on Drupal 8 \Drupal:messenger

Submitted by barnettech on Fri, 12/07/2018 - 14:29
$messenger= \Drupal::messenger();
$messenger->addMessage('thanks for submitting the csv data, administrate users have been created from the csv file!');