You are here

protected function IntColumnHandlerPostgreSQL::getFunctionName in Dynamic Entity Reference 8.2

Returns an appropriate plpgsql function name.

Parameters

string $table: The name of the table.

string $column_int: The name of the target_id_int column.

Return value

string The plpgsql function name.

2 calls to IntColumnHandlerPostgreSQL::getFunctionName()
IntColumnHandlerPostgreSQL::createTrigger in src/Storage/IntColumnHandlerPostgreSQL.php
Creates the trigger.
IntColumnHandlerPostgreSQL::createTriggerFunction in src/Storage/IntColumnHandlerPostgreSQL.php
Creates the actual table function.

File

src/Storage/IntColumnHandlerPostgreSQL.php, line 129

Class

IntColumnHandlerPostgreSQL
PostgreSQL implementation of denormalizing into integer columns.

Namespace

Drupal\dynamic_entity_reference\Storage

Code

protected function getFunctionName($table, $column_int) {
  return implode('_', [
    $this
      ->getPrefixedTable($table),
    $column_int,
  ]);
}