public static function PrefixHandler::clearPrefix in DB Maintenance 8
Same name and namespace in other branches
- 7.2 src/Module/Db/PrefixHandler.php \Drupal\db_maintenance\Module\Db\PrefixHandler::clearPrefix()
- 2.0.x src/Module/Db/PrefixHandler.php \Drupal\db_maintenance\Module\Db\PrefixHandler::clearPrefix()
Cleans table prefix.
1 call to PrefixHandler::clearPrefix()
- DbHandler::optimizeTables in src/
Module/ Db/ DbHandler.php - Performs the maintenance.
File
- src/
Module/ Db/ PrefixHandler.php, line 30 - PrefixHandler class.
Class
- PrefixHandler
- PrefixHandler class.
Namespace
Drupal\db_maintenance\Module\DbCode
public static function clearPrefix($table) {
$px = self::getPrefix($table);
if (strlen($px) > 0) {
$table_clear = str_replace($px, '', $table);
return $table_clear;
}
return $table;
}