Add new comment

Dear JP:

I believe your example needs to include the following "use" statements:

use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Ajax\AlertCommand;
use Drupal\Core\Ajax\UpdateBuildIdCommand;
use Drupal\Core\Ajax\InvokeCommand;

Keep up the great work.  I am learning bunch.  Thanks!