Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate_drupal/src/MigrationConfigurationTrait.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
123 * Determines what version of Drupal the source database contains. | 123 * Determines what version of Drupal the source database contains. |
124 * | 124 * |
125 * @param \Drupal\Core\Database\Connection $connection | 125 * @param \Drupal\Core\Database\Connection $connection |
126 * The database connection object. | 126 * The database connection object. |
127 * | 127 * |
128 * @return int|false | 128 * @return string|false |
129 * An integer representing the major branch of Drupal core (e.g. '6' for | 129 * A string representing the major branch of Drupal core (e.g. '6' for |
130 * Drupal 6.x), or FALSE if no valid version is matched. | 130 * Drupal 6.x), or FALSE if no valid version is matched. |
131 */ | 131 */ |
132 protected function getLegacyDrupalVersion(Connection $connection) { | 132 protected function getLegacyDrupalVersion(Connection $connection) { |
133 // Don't assume because a table of that name exists, that it has the columns | 133 // Don't assume because a table of that name exists, that it has the columns |
134 // we're querying. Catch exceptions and report that the source database is | 134 // we're querying. Catch exceptions and report that the source database is |