Codeception\Module\WPDb::grabPrefixedTableNameFor PHP Method

grabPrefixedTableNameFor() public method

If the table is not one to be prefixed (e.g. users) then the proper table name will be returned.
public grabPrefixedTableNameFor ( string $tableName = '' ) : string
$tableName string The table name, e.g. `options`.
return string The prefixed table name, e.g. `wp_options` or `wp_2_options`.
    public function grabPrefixedTableNameFor($tableName = '')
    {
        $idFrag = '';
        if (!(in_array($tableName, $this->uniqueTables) || $this->blogId == 1)) {
            $idFrag = empty($this->blogId) ? '' : "{$this->blogId}_";
        }
        $tableName = $this->config['tablePrefix'] . $idFrag . $tableName;
        return $tableName;
    }
WPDb