You are here

public function SchemaComparisonInfoBuilder::getWarningsArray in Schema 8

1 call to SchemaComparisonInfoBuilder::getWarningsArray()
SchemaComparisonInfoBuilder::getInfoArray in src/Comparison/SchemaComparisonInfoBuilder.php

File

src/Comparison/SchemaComparisonInfoBuilder.php, line 27
Contains Drupal\schema\Comparison\SchemaComparisonInfoBuilder.

Class

SchemaComparisonInfoBuilder

Namespace

Drupal\schema\Comparison

Code

public function getWarningsArray() {
  $info = array();
  foreach ($this->o
    ->getWarnings() as $warning) {
    $info['warn'][] = $warning;
  }
  return $info;
}