public function Insert::from in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Database/Query/Insert.php \Drupal\Core\Database\Query\Insert::from()
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 55 - Contains \Drupal\Core\Database\Query\Insert.
Class
- Insert
- General class for an abstracted INSERT query.
Namespace
Drupal\Core\Database\QueryCode
public function from(SelectInterface $query) {
$this->fromQuery = $query;
return $this;
}