UpdateException

Exception class used to throw error if a module update fails. Hierarchy class \Drupal\Core\Utility\UpdateException extends \Exception File core/lib/Drupal/Core/Utility/UpdateException.php, line 8 Namespace Drupal\Core\Utility Members

UpdateBuildIdCommand::__construct

public UpdateBuildIdCommand::__construct($old, $new) Constructs a UpdateBuildIdCommand object. Parameters string $old: The old build_id. string $new: The new build_id. File core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php, line 44 Class UpdateBuildIdCommand 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. Namespace Drupal\Core

UpdateBuildIdCommand::render

public UpdateBuildIdCommand::render() Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php, line 52 Class UpdateBuildIdCommand 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. Namespace Drupal\Core\Ajax Code public functio

UpdateBuildIdCommand::$old

Old build id. Type: string File core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php, line 27 Class UpdateBuildIdCommand 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. Namespace Drupal\Core\Ajax Code protected $old;

UpdateBuildIdCommand::$new

New build id. Type: string File core/lib/Drupal/Core/Ajax/UpdateBuildIdCommand.php, line 34 Class UpdateBuildIdCommand 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. Namespace Drupal\Core\Ajax Code protected $new;

UpdateBuildIdCommand

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.protot

Update::__toString

public Update::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Query::__toString File core/lib/Drupal/Core/Database/Query/Update.php, line 157 Class Update General class for an abstracted UPDATE operation. Namespace Drupal\Core\Database\Query Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComment($th

Update::__construct

public Update::__construct(Connection $connection, $table, array $options = array()) Constructs an Update query object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Update.php, line 63 Class Update General class for an abstracted UPDATE operation. Namespace Drupal\Core\Database\Qu

Update::fields

public Update::fields(array $fields) Adds a set of field->value pairs to be updated. Parameters $fields: An associative array of fields to write into the database. The array keys are the field names and the values are the values to which to set them. Return value \Drupal\Core\Database\Query\Update The called object. File core/lib/Drupal/Core/Database/Query/Update.php, line 81 Class Update General class for an abstracted UPDATE operation. Namespace Drupal\Core\Database\Query Code p

Update::expression

public Update::expression($field, $expression, array $arguments = NULL) Specifies fields to be updated as an expression. Expression fields are cases such as counter=counter+1. This method takes precedence over fields(). Parameters $field: The field to set. $expression: The field will be set to the value of this expression. This parameter may include named placeholders. $arguments: If specified, this is an array of key/value pairs for named placeholders corresponding to the expression. Return v