public function Schema::prepareComment

Same name in this branch

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.

3 calls to Schema::prepareComment()
1 method overrides Schema::prepareComment()

File

drupal/core/lib/Drupal/Core/Database/Schema.php, line 706
Definition of Drupal\Core\Database\Schema

Class

Schema

Namespace

Drupal\Core\Database

Code

public function prepareComment($comment, $length = NULL) {
  return $this->connection
    ->quote($comment);
}