Drupal 8  8.0.2
UpdateBuildIdCommand Class Reference
Inheritance diagram for UpdateBuildIdCommand:

Public Member Functions

 __construct ($old, $new)
 render ()
- Public Member Functions inherited from CommandInterface
 render ()
 __construct ($selector)
 render ()

Protected Attributes

- Protected Attributes inherited from CommandInterface

Detailed Description

AJAX command for updating the value of a hidden form_build_id input element on a form. It requires the form passed in to have keys for both the old build ID in #build_id_old and the new build ID in #build_id.

The primary use case for this Ajax command is to serve a new build ID to a form served from the cache to an anonymous user, preventing one anonymous user from accessing the form state of another anonymous user on Ajax enabled forms.

This command is implemented by Drupal.AjaxCommands.prototype.update_build_id() defined in misc/ajax.js. O

Constructor & Destructor Documentation

__construct (   $old,

Constructs a UpdateBuildIdCommand object.

string$oldThe old build_id.
string$newThe new build_id.

Member Function Documentation

render ( )


The documentation for this class was generated from the following file: