public Schema::prepareComment($comment, $length = NULL)
Prepare a table or column comment for database query.
Parameters
$comment: The comment string to prepare.
$length: Optional upper limit on the returned string length.
Return value
The prepared comment.
File
- core/lib/Drupal/Core/Database/Schema.php, line 638
Class
- Schema
- Provides a base implementation for Database Schema.
Namespace
Drupal\Core\Database
Code
1 2 3 4 5 | public function prepareComment( $comment , $length = NULL) { // Remove semicolons to avoid triggering multi-statement check. $comment = strtr ( $comment , [ ';' => '.' ]); return $this ->connection->quote( $comment ); } |
Please login to continue.