function Connection::getPrefix

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

Returns the prefix of the tables.

Return value

string $prefix

3 calls to Connection::getPrefix()
Connection::getFullQualifiedTableName in core/modules/sqlite/src/Driver/Database/sqlite/Connection.php
Get a fully qualified table name.
Connection::getFullQualifiedTableName in core/modules/pgsql/src/Driver/Database/pgsql/Connection.php
Get a fully qualified table name.
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 330

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.