function Schema::prefixNonTable

Create names for indexes, primary keys and constraints.

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

6 calls to Schema::prefixNonTable()
Schema::addUniqueKey in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Add a unique key.
Schema::createTableSql in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Generate SQL to create a new table from a Drupal schema definition.
Schema::dropIndex in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Drop an index.
Schema::dropPrimaryKey in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Drop the primary key.
Schema::dropUniqueKey in drupal/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Drop a unique key.

... See full list

File

drupal/core/lib/Drupal/Core/Database/Schema.php, line 260
Definition of Drupal\Core\Database\Schema

Class

Schema

Namespace

Drupal\Core\Database

Code

function prefixNonTable($table) {
  $args = func_get_args();
  $info = $this
    ->getPrefixInfo($table);
  $args[0] = $info['table'];
  return implode('_', $args);
}