function Connection::getPrefix

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/Connection.php \Drupal\Core\Database\Connection::getPrefix()

Returns the prefix of the tables.

Return value

string $prefix

1 call to Connection::getPrefix()
Connection::getFullQualifiedTableName in core/lib/Drupal/Core/Database/Connection.php
Get a fully qualified table name.

File

core/lib/Drupal/Core/Database/Connection.php, line 438

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

public function getPrefix() : string {
    return $this->prefix;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.