You are here

public function SchemaComparison::getTableComparison in Schema 8

Parameters

$name:

null $schema:

Return value

TableComparison

File

src/Comparison/Result/SchemaComparison.php, line 38
Contains Drupal\schema\Comparison\Result\SchemaComparison.

Class

SchemaComparison
Stores the results of a schema comparison.

Namespace

Drupal\schema\Comparison\Result

Code

public function getTableComparison($name, $schema = NULL) {
  if (!isset($this->tables_compared[$name])) {
    $this->tables_compared[$name] = new TableComparison($name, $schema);
  }
  return $this->tables_compared[$name];
}