InsertCommand::$content

The content for the matched element(s). Either a render array or an HTML string. Type: string|array File core/lib/Drupal/Core/Ajax/InsertCommand.php, line 38 Class InsertCommand Generic AJAX command for inserting content. Namespace Drupal\Core\Ajax Code protected $content;

InsertCommand

Generic AJAX command for inserting content. This command instructs the client to insert the given HTML using whichever jQuery DOM manipulation method has been specified in the #ajax['method'] variable of the element that triggered the request. This command is implemented by Drupal.AjaxCommands.prototype.insert() defined in misc/ajax.js. Hierarchy class \Drupal\Core\Ajax\InsertCommand implements CommandInterface, CommandWithAttachedAssetsInterface uses CommandWithAttachedAssetsTrait Related t

Insert::__toString

public Insert::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Insert::__toString File core/lib/Drupal/Core/Database/Driver/sqlite/Insert.php, line 28 Class Insert SQLite implementation of \Drupal\Core\Database\Query\Insert. Namespace Drupal\Core\Database\Driver\sqlite Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->con

Insert::__toString

public Insert::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Insert::__toString File core/lib/Drupal/Core/Database/Driver/mysql/Insert.php, line 40 Class Insert MySQL implementation of \Drupal\Core\Database\Query\Insert. Namespace Drupal\Core\Database\Driver\mysql Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->connec

Insert::__toString

public Insert::__toString() Implements PHP magic __toString method to convert the query to a string. Return value string The prepared statement. Overrides Insert::__toString File core/lib/Drupal/Core/Database/Driver/pgsql/Insert.php, line 124 Class Insert PostgreSQL implementation of \Drupal\Core\Database\Query\Insert. Namespace Drupal\Core\Database\Driver\pgsql Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->

Insert::__toString

public Insert::__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/Insert.php, line 113 Class Insert General class for an abstracted INSERT query. Namespace Drupal\Core\Database\Query Code public function __toString() { // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComment($this-&

Insert::__construct

public Insert::__construct($connection, $table, array $options = array()) Constructs an Insert 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/Insert.php, line 33 Class Insert General class for an abstracted INSERT query. Namespace Drupal\Core\Database\Query Code public func

Insert::preExecute

protected Insert::preExecute() Preprocesses and validates the query. Return value bool TRUE if the validation was successful, FALSE if not. Throws \Drupal\Core\Database\Query\FieldsOverlapException \Drupal\Core\Database\Query\NoFieldsException File core/lib/Drupal/Core/Database/Query/Insert.php, line 143 Class Insert General class for an abstracted INSERT query. Namespace Drupal\Core\Database\Query Code protected function preExecute() { // Confirm that the user did not try to speci

Insert::from

public Insert::from(SelectInterface $query) Sets the fromQuery on this InsertQuery object. Parameters \Drupal\Core\Database\Query\SelectInterface $query: The query to fetch the rows that should be inserted. Return value \Drupal\Core\Database\Query\Insert The called object. File core/lib/Drupal/Core/Database/Query/Insert.php, line 50 Class Insert General class for an abstracted INSERT query. Namespace Drupal\Core\Database\Query Code public function from(SelectInterface $query) { $th

Insert::execute

public Insert::execute() Executes the insert query. Return value The last insert ID of the query, if one exists. If the query was given multiple sets of values to insert, the return value is undefined. If no fields are specified, this method will do nothing and return NULL. That That makes it safe to use in multi-insert loops. Overrides Insert::execute File core/lib/Drupal/Core/Database/Driver/mysql/Insert.php, line 12 Class Insert MySQL implementation of \Drupal\Core\Database\Query\Inser