You are here

function Schema::prefixNonTable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::prefixNonTable()

Create names for indexes, primary keys and constraints.

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

1 call to Schema::prefixNonTable()
Schema::renameTable in core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Rename a table.

File

core/lib/Drupal/Core/Database/Schema.php, line 113
Contains \Drupal\Core\Database\Schema.

Class

Schema
Provides a base implementation for Database Schema.

Namespace

Drupal\Core\Database

Code

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