GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/lib/Drupal/Core/Ajax/ |
Upload File : |
<?php namespace Drupal\Core\Ajax; /** * 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 * @ingroup ajax */ class UpdateBuildIdCommand implements CommandInterface { /** * Old build id. * * @var string */ protected $old; /** * New build id. * * @var string */ protected $new; /** * Constructs a UpdateBuildIdCommand object. * * @param string $old * The old build_id. * @param string $new * The new build_id. */ public function __construct($old, $new) { $this->old = $old; $this->new = $new; } /** * {@inheritdoc} */ public function render() { return [ 'command' => 'update_build_id', 'old' => $this->old, 'new' => $this->new, ]; } }