Demystifying AJAX Callback Commands in Drupal 8


This session outlines and explains Drupal 8 AJAX callback commands and how to use them. AJAX callback commands are the sets of PHP and JavaScript functions that control all AJAX functionality on a Drupal site.  You will be suprised about how simple and straight forward they are.  Mastering these commands will allow your AJAX calls to do so much more then just return rendered HTML. Allowing you to provide the visitors of your Drupal 8 site a more dynamic, richers experience.

This session is presented in three parts.  

  • First, explaining what AJAX callback commands are.
  • Second, explaining how to use AJAX callback commands.
  • Third, explaining how to create and use your own custom commands.  

Each section provides example code and walks through a real world Drupal 8 scenario.

Attendees should already be familiar with PHP and JavaScript, as well as, have a general understanding of Drupal and AJAX.

This session is BYOB.

Session Track

Coding and Development

Experience Level


Drupal Version

When & Where

Thursday, 12 May, 2016 - 14:15 to 15:15
264 [Lullabot]