Same name and namespace in other branches
  1. 8.9.x core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion()
  2. 9 core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::getModuleSchemaVersion()

Retrieves a module schema_version from the source Drupal database.

Parameters

string $module: Name of module.

Return value

mixed The current module schema version on the origin system table or FALSE if not found.

7 calls to DrupalSqlBase::getModuleSchemaVersion()
Action::fields in core/modules/system/src/Plugin/migrate/source/Action.php
Returns available fields on the source.
Action::prepareRow in core/modules/system/src/Plugin/migrate/source/Action.php
Adds additional data to the row.
Block::query in core/modules/block/src/Plugin/migrate/source/Block.php
DrupalSqlBase::checkRequirements in core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php
Checks if requirements for this plugin are OK.
Node::prepareRow in core/modules/node/src/Plugin/migrate/source/d6/Node.php
Adds additional data to the row.

... See full list

File

core/modules/migrate_drupal/src/Plugin/migrate/source/DrupalSqlBase.php, line 134

Class

DrupalSqlBase
A base class for source plugins using a Drupal database as a source.

Namespace

Drupal\migrate_drupal\Plugin\migrate\source

Code

protected function getModuleSchemaVersion($module) {
  $system_data = $this
    ->getSystemData();
  return $system_data['module'][$module]['schema_version'] ?? FALSE;
}