You are here

public static function PrefixHandler::getPrefix in DB Maintenance 8

Same name and namespace in other branches
  1. 7.2 src/Module/Db/PrefixHandler.php \Drupal\db_maintenance\Module\Db\PrefixHandler::getPrefix()
  2. 2.0.x src/Module/Db/PrefixHandler.php \Drupal\db_maintenance\Module\Db\PrefixHandler::getPrefix()

Returns table prefix.

1 call to PrefixHandler::getPrefix()
PrefixHandler::clearPrefix in src/Module/Db/PrefixHandler.php
Cleans table prefix.

File

src/Module/Db/PrefixHandler.php, line 22
PrefixHandler class.

Class

PrefixHandler
PrefixHandler class.

Namespace

Drupal\db_maintenance\Module\Db

Code

public static function getPrefix($table) {
  $px = Database::getConnection()
    ->tablePrefix($table);
  return $px;
}