You are here

public function SchemaComparator::execute in Schema 8

Execute the schema comparison.

Return value

SchemaComparison The comparison result.

File

src/Comparison/SchemaComparator.php, line 64
Contains Drupal\schema\Comparison\SchemaComparator.

Class

SchemaComparator
Compares a declared schema array with the complete database schema.

Namespace

Drupal\schema\Comparison

Code

public function execute() {
  if ($this->result == NULL) {
    $this->result = new SchemaComparison();
    $this
      ->executeCompare();
  }
  return $this->result;
}