Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / templates / module / js / commands.php.twig
diff --git a/vendor/drupal/console/templates/module/js/commands.php.twig b/vendor/drupal/console/templates/module/js/commands.php.twig
new file mode 100644 (file)
index 0000000..1c37459
--- /dev/null
@@ -0,0 +1,5 @@
+(function ($, Drupal) {
+Drupal.AjaxCommands.prototype.{{ method }} = function (ajax, response, status) {
+  console.log(response.message);
+}
+})(jQuery, Drupal);
\ No newline at end of file