Schema::prefixNonTable

Schema::prefixNonTable($table)

Create names for indexes, primary keys and constraints.

This prevents using {} around non-table names like indexes and keys.

File

core/lib/Drupal/Core/Database/Schema.php, line 108

Class

Schema
Provides a base implementation for Database Schema.

Namespace

Drupal\Core\Database

Code

1
2
3
4
5
6
function prefixNonTable($table) {
  $args = func_get_args();
  $info = $this->getPrefixInfo($table);
  $args[0] = $info['table'];
  return implode('_', $args);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.