function public function UpdateManager::getLatestSchema

8.x-3.x UpdateManager.php public UpdateManager::getLatestSchema()

Retrieves the latest update schema.

Return value

int|array The latest update schema.

Class

UpdateManager
Manages discovery and instantiation of Bootstrap updates.

Namespace

Drupal\bootstrap\Plugin

Source src/Plugin/UpdateManager.php (line 59)

public function getLatestSchema() {
  $schema = \Drupal::CORE_MINIMUM_SCHEMA_VERSION;
  if ($schemas = $this->getSchemas()) {
    $schema = max(max($schemas), $schema);
  }
  return $schema;
}