public function renderRefTableName(TableStructure $table): string
    {
        $tableName = $this->refTable;

        if (!$table->usePrefix) {
            return $tableName;
        }

        if ($table->dbPrefix && strpos($this->refTable, $table->dbPrefix) === 0) {
            $tableName = substr($this->refTable, mb_strlen($table->dbPrefix, 'UTF-8'));
        }

        return '{{%' . $tableName . '}}';
    }
public function renderRefTableName(TableStructure $table): string
    {
        $tableName = $this->refTable;

        if (!$table->usePrefix) {
            return $tableName;
        }

        if ($table->dbPrefix && strpos($this->refTable, $table->dbPrefix) === 0) {
            $tableName = substr($this->refTable, mb_strlen($table->dbPrefix, 'UTF-8'));
        }

        return '{{%' . $tableName . '}}';
    }
public function renderRefTableName ( TableStructure $ table ) : string { $ tableName = $ this -> refTable ; if ( ! $ table -> usePrefix ) { return $ tableName ; } if ( $ table -> dbPrefix && strpos ( $ this -> refTable , $ table -> dbPrefix ) === 0 ) { $ tableName = substr ( $ this -> refTable , mb_strlen ( $ table -> dbPrefix , 'UTF-8' ) ) ; } return '{{%' . $ tableName . '}}' ; }
Renders reference table name.
@param TableStructure $table
@return string
Renders reference table name .