By beatrizrodrigues on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
Support for per-table prefixing has as been deprecated since Drupal 8.2. The method Drupal\Core\Database\Connection::prefixTable($table) which returned the prefix for a single table has been deprecated. In Drupal 10, there is only a single prefix for all tables, making the method's name and parameter misleading. Therefore, a new method Drupal\Core\Database\Connection::getPrefix() was added.
Before
$prefix = Drupal\Core\Database\Connection->tablePrefix($table);
After
$prefix = Drupal\Core\Database\Connection->getPrefix();
Impacts:
Module developers